Bug 157031

Summary: td/th.headers and a/area.ping should be DOMTokenList
Product: WebKit Reporter: Simon Pieters (:zcorpan) <zcorpan>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: cdumez
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Simon Pieters (:zcorpan)
Reported 2016-04-26 03:37:11 PDT
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
Chris Dumez
Comment 1 2016-04-28 13:47:20 PDT
Last I checked, the other browsers had not implemented it either so I delayed this work.
Simon Pieters (:zcorpan)
Comment 2 2016-05-17 00:45:18 PDT
The spec changed .headers and .ping to DOMString/USVString in https://github.com/whatwg/html/pull/1262
Note You need to log in before you can comment on or make changes to this bug.