This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
DOMTokenList is not a good type here since you cannot set it. We could use a DOMSettableTokenList instead, but... // With DOMTokenList contentElement.select = '.foo'; // throws TypeError // With DOMSettableTokenList contentElement.select = '.foo'; // throws TypeError contentElement.select.value = '.foo'; // OK, but SVGish APIs must die Suggestion: Use DOMString for select and optionally add a selectList property with type DOMTokenList.
(In reply to comment #0) > DOMTokenList is not a good type here since you cannot set it. We could use a > DOMSettableTokenList instead, but... > > // With DOMTokenList > contentElement.select = '.foo'; // throws TypeError > > // With DOMSettableTokenList > contentElement.select = '.foo'; // throws TypeError > contentElement.select.value = '.foo'; // OK, but SVGish APIs must die > > Suggestion: Use DOMString for select and optionally add a selectList property > with type DOMTokenList. I think I'll just use DOMSTring for now. Thanks! http://dvcs.w3.org/hg/webcomponents/rev/0591f3d23db3