Conversation
This can be used in the HTML spec as suggested in this issue: whatwg/html#8970
| <li><p>If <var>node</var>'s <a for=slottable>assigned slot</a> is null, then return null.</p></li> | ||
|
|
||
| <li><p>Return <var>node</var>'s <a for=slottable>assigned slot</a>'s <a | ||
| for=tree>parent</a>.</p></li> |
There was a problem hiding this comment.
@mfreed7 do I need to run anything recursive in the last step here? I briefly tried to make a demo with a slot assigned into another slot, but it didn't seem to work.
There was a problem hiding this comment.
I guess I at least need to check if the parent is a shadow host, right?
annevk
left a comment
There was a problem hiding this comment.
I was hoping this definition could mostly stay in CSS and in DOM we could use the composed tree (which we use for events).
Perhaps having both concepts in DOM is useful, but early on we were fairly deliberate on the split and I feel like we lost some of the knowledge as to why we did things that way.
| for=DocumentFragment>host</a>.</p></li> | ||
|
|
||
| <li><p>If <var>parent</var> is not a <a for=Element>shadow host</a>, then return | ||
| <var>node</var>.</p></li> |
There was a problem hiding this comment.
You want to return parent here, presumably.
| <ol> | ||
| <li><p>Let <var>parent</var> be <var>node</var>'s <a for=tree>parent</a>.</p></li> | ||
|
|
||
| <li><p>If <var>parent</var> is a <a for=/>shadow root</a>, then return <var>parent</var>'s <a |
There was a problem hiding this comment.
No wrapping in phrasing elements.
| <p class=note>The <a>retargeting</a> algorithm is used by <a lt=dispatch>event dispatch</a> as well | ||
| as other specifications, such as <cite>Fullscreen</cite>. [[FULLSCREEN]] | ||
|
|
||
| <p>To get the <dfn export>flat tree parent</dfn> of a <var>node</var>:</p> |
There was a problem hiding this comment.
What about children of a slot element?
This can be used in the HTML spec as suggested in this issue: whatwg/html#8970
(See WHATWG Working Mode: Changes for more details.)
Preview | Diff