-
Notifications
You must be signed in to change notification settings - Fork 3k
Add <template contentmethod> for declarative out-of-order streaming #11818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
||
<li><p>Depending on the contentmethod state, remove existing nodes and update the insertion point.</p></li> | ||
|
||
<li><p>Question: do we adjust the insertion point simply by setting <var>adjusted insertion location</var>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit more involved because we need to adjust the location based on the grandparent's contentmethod and the parent's contentname.
<li><p>TODO: what to we need to do so that elements are inserted into the template element | ||
and redirected by our pre-insertion steps? We need to undo whatever it is that causes nodes | ||
to be inserted into the DocumentFragment normally.</p></li> | ||
</ol> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the "adjusted insertion location" or whatever it's called
</li> | ||
|
||
<li> | ||
<!-- TODO: is it OK if both of these branches run? If not, which one wins? --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not OK. One needs to win.
element with a valid contentmethod attribute, find the target element with the same namespace, | ||
localName, and a contentname attribute with the same value.</p></li> | ||
|
||
<li><p>TODO: is there any whitespace stripping in contentname attribute values?</p></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should work the same as ID referencing.
(See WHATWG Working Mode: Changes for more details.)
/indices.html ( diff )
/parsing.html ( diff )
/scripting.html ( diff )