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 15310 - [Shadow]: Formalize insertion points and shadow insertion points in fallback content in the algorithm
Summary: [Shadow]: Formalize insertion points and shadow insertion points in fallback ...
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-22 02:57 UTC by Dominic Cooney
Modified: 2011-12-26 18:27 UTC (History)
0 users

See Also:


Attachments

Description Dominic Cooney 2011-12-22 02:57:24 UTC
The tree composition algorithm states: <http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#dfn-tree-composition>

"The insertion points or shadow insertion points in fallback content must not participate in composition."

This should be clarified by formalizing it in the algorithm or clarifying the meaning of “insertion point” and “shadow insertion point”.

For example, is the distribution algorithm when referred to by the tree composition algorithm in step 4.2 thus part of composition, or separate to it? If it is separate, then

<content select="a">
  <content select="b"></content>
</content>

is a way to say “distribute a and b here; if there are a, output them, otherwise output b.”

If the distribution algorithm is a sub-part of composition then per the prose regulation the meaning is roughly "distribute a here; if there are a, output them.”

This should be clarified by formalizing the prose regulation in the algorithm. For example, if the intended meaning is the latter, then the term “insertion point” could be tweaked to include ”…that does not have any insertion point as an ancestor.”
Comment 1 Dimitri Glazkov 2011-12-22 19:20:45 UTC
I think I got it: http://dvcs.w3.org/hg/webcomponents/rev/fbaafbc9277a

In order to avoid cyclic references, I had to define the concept of "active" and "inactive" insertion point. WDYT?
Comment 2 Dominic Cooney 2011-12-26 02:27:57 UTC
Yes—active and inactive have made this clear.
Comment 3 Dimitri Glazkov 2011-12-26 18:27:58 UTC
yay!