Skip to content

Commit 56674fb

Browse files
authored
Clarify that foreign content is not an insertion mode
The rules for parsing tokens in foreign content are selected per token by the tree construction dispatcher and leave the insertion mode unchanged. Follow-up to #12658. Fixes #4015.
1 parent 9377fd6 commit 56674fb

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

source

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141092,6 +141092,11 @@ dictionary <dfn dictionary>StorageEventInit</dfn> : <span>EventInit</span> {
141092141092
<p>The <dfn>insertion mode</dfn> is a state variable that controls the primary operation of the
141093141093
tree construction stage.</p>
141094141094

141095+
<p class="note">The rules for parsing tokens <span data-x="insertion mode: in foreign content">in
141096+
foreign content</span> are not an <span>insertion mode</span>. The <span>tree construction
141097+
dispatcher</span> selects them independently of the current <span>insertion mode</span>, which is
141098+
left unchanged while they are in use.</p>
141099+
141095141100
<p>Initially, the <span>insertion mode</span> is "<span data-x="insertion mode:
141096141101
initial">initial</span>". It can change to "<span data-x="insertion mode: before html">before
141097141102
html</span>", "<span data-x="insertion mode: before head">before head</span>", "<span
@@ -143793,8 +143798,8 @@ dictionary <dfn dictionary>StorageEventInit</dfn> : <span>EventInit</span> {
143793143798
</div>
143794143799

143795143800
<p class="note">U+0000 NULL characters are handled in the tree construction stage, as part of the
143796-
<span data-x="insertion mode: in foreign content">in foreign content</span> insertion mode, which
143797-
is the only place where CDATA sections can appear.</p>
143801+
rules for parsing tokens <span data-x="insertion mode: in foreign content">in foreign
143802+
content</span>, which is the only place where CDATA sections can appear.</p>
143798143803

143799143804
<h5><dfn>CDATA section bracket state</dfn></h5>
143800143805

0 commit comments

Comments
 (0)