Skip to content

Commit caf70fa

Browse files
authored
Clarify that the parser can insert elements into plaintext elements
Resolves #8009.
1 parent aef1078 commit caf70fa

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

source

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128949,9 +128949,12 @@ document.body.appendChild(text);
128949128949

128950128950
<p>Switch the tokenizer to the <span>PLAINTEXT state</span>.</p>
128951128951

128952-
<p class="note">Once a start tag with the tag name "plaintext" has been seen, that will be the
128953-
last token ever seen other than character tokens (and the end-of-file token), because there is
128954-
no way to switch out of the <span>PLAINTEXT state</span>.</p>
128952+
<p class="note">Once a start tag with the tag name "plaintext" has been seen, all remaining
128953+
tokens will be character tokens (and a final end-of-file token) because there is no way to
128954+
switch the tokenizer out of the <span>PLAINTEXT state</span>. However, as the tree builder
128955+
remains in its existing insertion mode, it might <span>reconstruct the active formatting
128956+
elements</span> while processing those character tokens. This means that the parser can
128957+
insert other elements into the <code>plaintext</code> element.</p>
128955128958
</dd>
128956128959

128957128960
<!-- button is a hybrid -->

0 commit comments

Comments
 (0)