[Bug 26179] toString should be non enumerable


--- Comment #3 from Boris Zbarsky <bzbarsky@mit.edu> ---
> document.createElement('a').propertyIsEnumerable('toString')

The property is not a property on the element itself.  It's a property on the
prototype.  Nonexistent properties report "false" from propertyIsEnumerable
(see ES6 step 7).  You'd get false for
document.createElement('a').propertyIsEnumerable('oblongify') too.

So it sounds like in Firefox and IE this is an enumerable property on the
prototype, as per current spec.  It's not clear what you think the bug in their
binding implementations is, exactly unless it's "not matching the behavior I
want for this property"...

Now maybe we can change browser behavior without breaking sites, given that the
property is not enumerable in Chrome.  I checked, and it's not enumerable in
Safari either.

You are receiving this mail because:
You are on the CC list for the bug.

Received on Monday, 23 June 2014 17:09:09 UTC