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 23052 - [Shadow]: HTMLShadowElement should also have getDistributedNodes()
Summary: [Shadow]: HTMLShadowElement should also have getDistributedNodes()
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: Hayato Ito
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 22715
  Show dependency treegraph
 
Reported: 2013-08-23 20:11 UTC by Elliott Sprehn
Modified: 2013-10-24 12:31 UTC (History)
2 users (show)

See Also:


Attachments

Description Elliott Sprehn 2013-08-23 20:11:27 UTC
This is necessary since if you have:

<div> --> ShadowRoot
  <div>Hello</div>
  <span>World</span>
<div>

and inside ShadowRoot

<content select="div"></content>
<shadow></shadow>

you cannot tell which nodes ended up in <shadow> without getDistributedNodes() or filling the pool yourself and then walking all insertion points and looking for the non-distributed nodes to notice the UA shadow with the <content select="*"> is being used and should select the remaining nodes (div).
Comment 1 Hayato Ito 2013-10-24 11:18:18 UTC
Agreed. Now there is no reason that only content insertion points have getDistributedNodes().

Let me add that.
Comment 2 Hayato Ito 2013-10-24 12:31:28 UTC
The spec was updated: https://dvcs.w3.org/hg/webcomponents/rev/56c32aa01490