Bug 157031
Summary: | td/th.headers and a/area.ping should be DOMTokenList | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Pieters (:zcorpan) <zcorpan> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | cdumez |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Simon Pieters (:zcorpan)
See https://github.com/whatwg/html/issues/1026
headers and ping IDL attributes are strings but should be DOMTokenList.
Spec:
https://html.spec.whatwg.org/multipage/semantics.html#htmlanchorelement
https://html.spec.whatwg.org/multipage/embedded-content.html#htmlareaelement
https://html.spec.whatwg.org/multipage/tables.html#htmltablecellelement
Simple test:
<!DOCTYPE html>
<a id=a ping="x y"></a>
<table><tr><td id=td headers="z"></table>
<script>
alert(a.ping instanceof DOMTokenList);
alert(td.headers instanceof DOMTokenList);
</script>
Test:
http://w3c-test.org/html/dom/interfaces.html
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Chris Dumez
Last I checked, the other browsers had not implemented it either so I delayed this work.
Simon Pieters (:zcorpan)
The spec changed .headers and .ping to DOMString/USVString in https://github.com/whatwg/html/pull/1262