Skip to content

Commit 05d0ae7

Browse files
sideshowbarkerzcorpan
authored andcommitted
Editorial: Clarify what happens to U+0000 chars
This changes updates a non-normative note to clarify that in some cases, the spec requires parsers to replace U+0000 characters with U+FFFD characters.
1 parent bf139cb commit 05d0ae7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101391,9 +101391,9 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
101391101391
<span data-x="parse error">parse errors</span>.</p>
101392101392

101393101393
<p class="note">The handling of U+0000 NULL characters varies based on where the characters are
101394-
found and happens at the later stages of the parsing. In general, they are ignored except where
101395-
doing so could plausibly introduce an attack vector. This handling is, by necessity, spread across
101396-
both the tokenization stage and the tree construction stage.</p>
101394+
found and happens at the later stages of the parsing. They are either ignored or, for security
101395+
reasons, replaced with a U+FFFD REPLACEMENT CHARACTER. This handling is, by necessity, spread
101396+
across both the tokenization stage and the tree construction stage.</p>
101397101397

101398101398
<p>U+000D CARRIAGE RETURN (CR) characters and U+000A LINE FEED (LF) characters are treated
101399101399
specially. Any LF character that immediately follows a CR character must be ignored, and all CR

0 commit comments

Comments
 (0)