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

@cdumez: I presented both case in this example for DOMSettableTokenList:
changing set of tokens > affect content attribute (Firefox, not Chrome and not IE)
changing content attribute > affect set of tokens (Firefox and Chrome, not IE)
and wondering if the same happen for other cases (not only HTMLLinkElement.sizes). And I see that DOM is precise here (even for DOMTokenList and class, where we have in prose what should be done when changing attr value, the opposite situation is described in sets algo) but HTML is very economical and to general for both of these interface :
"If a reflecting IDL attribute has the type DOMTokenList or DOMSettableTokenList, then on getting it must return a DOMTokenList or DOMSettableTokenList object (as appropriate) whose associated element is the element in question and whose associated attribute's local name is the name of the attribute in question. The same DOMTokenList or DOMSettableTokenList object must be returned every time for each attribute."

Of course it would be useful to know why DOMSettableTokenList should not affect the content attribute and vice versa (when we are modifying one of them), compatibility reason?

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

Received on Saturday, 17 October 2015 20:24:37 UTC