td/th.headers and a/area.ping should be DOMTokenList
Reported by
sim...@opera.com,
Apr 26 2016
|
|||
Issue descriptionSee 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
,
May 13 2016
It has been already done and reverted once ( https://codereview.chromium.org/1416043002). It seems to be breaking some functionality in google.co.in. So is it worth to do this change again now?
,
May 13 2016
Thanks for the info, will forward to the spec issue.
,
May 17 2016
The spec changed .headers and .ping to DOMString/USVString in https://github.com/whatwg/html/pull/1262 |
|||
►
Sign in to add a comment |
|||
Comment 1 by tkent@chromium.org
, Apr 26 2016Labels: Hotlist-Interop
Status: Available (was: Untriaged)