W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2014

[Bug 26179] toString should be non enumerable

From: <bugzilla@jessica.w3.org>
Date: Mon, 23 Jun 2014 20:35:17 +0000
To: public-script-coord@w3.org
Message-ID: <bug-26179-3890-NULjn7Yhca@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26179

--- Comment #5 from Erik Arvidsson <arv@google.com> ---
(In reply to Boris Zbarsky from comment #3)
> > 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 19.1.3.4 step 7).  You'd get false for
> document.createElement('a').propertyIsEnumerable('oblongify') too.

I forgot that propertyIsEnumerable is only for own properties. Then the IE and
FF results are consistent.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Monday, 23 June 2014 20:35:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:22 UTC