Skip to content

Commit 50a4491

Browse files
committed
Think out loud with TODOs and questions
1 parent 6ec5ba3 commit 50a4491

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

source

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139449,6 +139449,27 @@ dictionary <dfn dictionary>StorageEventInit</dfn> : <span>EventInit</span> {
139449139449
<!-- Either here and before every other call to "adjusted insertion location", or maybe inside
139450139450
"adjusted insertion location", adjust the insertion location based on contentmethod and the
139451139451
first child element of the template. -->
139452+
<li>
139453+
<p>contentmethod handling:</p>
139454+
139455+
<ol>
139456+
<li><p>If <var>element</var> has a contentname attribute and is being inserted into a template
139457+
element with a valid contentmethod attribute, find the target element with the same namespace,
139458+
localName, and a contentname attribute with the same value.</p></li>
139459+
139460+
<li><p>TODO: is there any whitespace stripping in contentname attribute values?</p></li>
139461+
139462+
<li><p>If the template element is in <code>body</code>, instead search the whole document so
139463+
that things in <code>head</code> can be patched.</p></li>
139464+
139465+
<li><p>Return if the target element wasn't found</p></li>
139466+
139467+
<li><p>Depending on the contentmethod state, remove existing nodes and update the insertion point.</p></li>
139468+
139469+
<li><p>Question: do we adjust the insertion point simply by setting <var>adjusted insertion location</var>,
139470+
or is there other bookkeeping that's needed here?</p></li>
139471+
</ol>
139472+
</li>
139452139473

139453139474
<li><p>Let the <var>adjusted insertion location</var> be the <span>appropriate place for
139454139475
inserting a node</span>.</p></li>
@@ -140268,7 +140289,9 @@ document.body.appendChild(text);
140268140289
data-x="attr-contentmethod-none-state">None</span> state:</p>
140269140290

140270140291
<ol>
140271-
<li><p>TODO</p></li>
140292+
<li><p>TODO: what to we need to do so that elements are inserted into the template element
140293+
and redirected by our pre-insertion steps? We need to undo whatever it is that causes nodes
140294+
to be inserted into the DocumentFragment normally.</p></li>
140272140295
</ol>
140273140296
</li>
140274140297

0 commit comments

Comments
 (0)