RESOLVED WONTFIX Bug 43224
[V8] "delete" on IDL attributes that reflect DOM attributes does not match Firefox/Opera
https://bugs.webkit.org/show_bug.cgi?id=43224
Summary [V8] "delete" on IDL attributes that reflect DOM attributes does not match Fi...
Aryeh Gregor
Reported 2010-07-29 18:00:23 PDT
data:text/html,<!doctype html> <script> var el = document.createElement("a"); delete el.id; alert(typeof el.id); </script> Chrome dev channel (6.0.472.0 (Official Build 53024) dev, WebKit 534.3) outputs "undefined". Firefox and Opera output "string". Discussion in #whatwg concluded that the relevant spec here is WebIDL: http://dev.w3.org/2006/webapi/WebIDL/ But no one who was awake was able to decipher what it actually required here. WebKit seems like the one that's wrong here, but I'm not totally sure on that.
Attachments
Aryeh Gregor
Comment 1 2010-07-29 18:06:08 PDT
Maciej Stachowiak reports that the test gives "string" in Safari, so it's presumably a bug in the V8 bindings.
James Robinson
Comment 2 2010-07-29 18:06:23 PDT
Hey Nate, looks like a bindings generation bug.
Dominic Cooney
Comment 3 2011-06-16 07:20:52 PDT
This bug is a consequence of the way V8 bindings are generated. V8 generates IDL attributes as properties on the object. The Web IDL spec specifies them as getters and setters on the object's prototype [1]. If bug 49739 was fixed, this bug would also be fixed as a natural consequence. [1] <http://dev.w3.org/2006/webapi/WebIDL/#es-attributes>
Note You need to log in before you can comment on or make changes to this bug.