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

Also see HTMLOutputElement.htmlFor [2]:
[PutForwards=value] readonly attribute DOMSettableTokenList htmlFor;

When setting htmlFor, you would definitely expect the 'for' attribute to be updated as well. However, the DOM specification for DOMSettableTokenList.value [3] setter does not say anything about it. It only says to update the tokens, it does not say we should run the update steps [4].

I have verified in Firefox that setting HTMLOutputElement.htmlFor to a given string does update the associated 'for' attribute.

[2] https://html.spec.whatwg.org/#htmloutputelement
[3] https://dom.spec.whatwg.org/#dom-domsettabletokenlist-value
[4] https://dom.spec.whatwg.org/#concept-DTL-update

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

Received on Tuesday, 22 September 2015 19:16:39 UTC