Bug 43224
Summary: | [V8] "delete" on IDL attributes that reflect DOM attributes does not match Firefox/Opera | ||
---|---|---|---|
Product: | WebKit | Reporter: | Aryeh Gregor <ayg> |
Component: | DOM | Assignee: | Nate Chapin <japhet> |
Status: | RESOLVED WONTFIX | ||
Severity: | Minor | CC: | arv, dominicc, jamesr, japhet, tabatkins |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | Linux | ||
Bug Depends on: | 49739 | ||
Bug Blocks: |
Aryeh Gregor
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Aryeh Gregor
Maciej Stachowiak reports that the test gives "string" in Safari, so it's presumably a bug in the V8 bindings.
James Robinson
Hey Nate, looks like a bindings generation bug.
Dominic Cooney
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>