[dom] "A DOMSettableTokenList object is equivalent to ..." (#81)

https://dom.spec.whatwg.org/#interface-domsettabletokenlist

> A DOMSettableTokenList object is equivalent to a DOMTokenList object without an associated attribute.

The HTML specification is using the DOMSettableTokenList in places where there is an associated attribute. For e.g. HTMLAnchorElement.ping [1]:
[PutForwards=value] readonly attribute DOMSettableTokenList ping;

It needs to be a DOMSettableTokenList because PutForwards needs to be able to set the 'value' attribute on the DOMSettableTokenList.

[1] https://html.spec.whatwg.org/multipage/semantics.html#the-a-element

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/81

Received on Monday, 21 September 2015 22:24:39 UTC