Re: [dom] DOMSettableTokenList needs an associated content attribute (#81)

> but this string type is correct or not? 

Define "correct"?  The HTML spec says `HTMLTableCellElement.headers` should be a `DOMSettableTokenList` but no one actually implements it that way.  Whether that's "no one implements it that way yet" or "no one implements it that way and the spec should just change", I can't tell you.

> I ask because test ping variant in Chrome and Firefox (HTMLAnchorElement, HTMLAnchorElement) and they both return string

I assume you meant (`HTMLAnchorElement`, `HTMLAreaElement`)?

In Chrome dev (48.something), `HTMLAnchorElement.ping` is a `DOMSettableTokenList` as far as I can tell.  In Chrome release (46.something) and Chrome beta (47.something), it's a string.  In Firefox it's a string.  My testing in https://github.com/whatwg/dom/issues/81#issuecomment-149582699 was in Chrome dev.

> So this must only change asociated content attribute (without touching internal set, removing
> duplicate or unnecessary white space from setting string)?

It should act exactly the way setAttribute acts, I would think.

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

Received on Wednesday, 21 October 2015 14:20:17 UTC