This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15299 - [Shadow]: HTMLContentElement select WebIDL attribute
Summary: [Shadow]: HTMLContentElement select WebIDL attribute
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14978
  Show dependency treegraph
 
Reported: 2011-12-21 19:32 UTC by Erik Arvidsson
Modified: 2011-12-21 20:18 UTC (History)
0 users

See Also:


Attachments

Description Erik Arvidsson 2011-12-21 19:32:45 UTC
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.
Comment 1 Dimitri Glazkov 2011-12-21 20:18:11 UTC
(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