classes and enumerability

Yehuda Katz wycats at gmail.com
Thu Jan 29 18:45:09 PST 2015


On Thu, Jan 29, 2015 at 6:43 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> On 1/29/15 9:41 PM, Yehuda Katz wrote:
>
>> I've personally written a lot of code that enumerates over the
>> properties of an element or other DOM object for some reason or other. I
>> strongly suspect that making existing WebIDL attributes non-enumerable
>> would not be web-compatible (nor, or even in the somewhat distant future).
>>
>
> I agree for elements, and probably all nodes.
>
> On the other hand, I'm fairly sure that no one depends FormData, say...


Right, but that's precisely your point about API predictability. We
shouldn't mix and match based on whether we can get away with it, or nobody
will have any idea what to expect.


>
>
>  I would agree that (2) isn't a good option, and I doubt (3) is
>> web-compatible ... :tears:
>>
>
> That's about where I am... and those three options were in fact discussed
> on this list before.
>
> Ah, well.
>
> -Boris
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150129/8f59928f/attachment.html>


More information about the es-discuss mailing list