diff --git a/source b/source index 92d5204d008..ca31ae9c991 100644 --- a/source +++ b/source @@ -99262,7 +99262,8 @@ dictionary StorageEventInit : EventInit { be filled in before it is emitted.)
U+003F QUESTION MARK (?)
-
Parse error. Switch to the bogus comment state.
+
Parse error. Create a comment token whose data is the empty string. Switch to + the bogus comment state. Reconsume the current input character.
Anything else
Parse error. Switch to the data state. Emit a U+003C LESS-THAN SIGN @@ -99295,7 +99296,8 @@ dictionary StorageEventInit : EventInit { character token and a U+002F SOLIDUS character token. Reconsume the EOF character.
Anything else
-
Parse error. Switch to the bogus comment state.
+
Parse error. Create a comment token whose data is the empty string. Switch to + the bogus comment state. Reconsume the current input character.
@@ -100363,21 +100365,25 @@ dictionary StorageEventInit : EventInit {
Bogus comment state
+ +

Consume the next input character:

-

Consume every character up to and including the first U+003E GREATER-THAN SIGN character (>) - or the end of the file (EOF), whichever comes first. - If more than one character was consumed, then emit a comment token whose data is the - concatenation of all the characters starting from and including the character that caused the - state machine to switch into the bogus comment state, up to and including the character - immediately before the last consumed character (i.e. up to the character just before the U+003E or - EOF character), but with any U+0000 NULL characters replaced by U+FFFD REPLACEMENT CHARACTER - characters. (If the comment was started by the end of the file (EOF), the token is empty. - Similarly, the token is empty if it was generated by the string "<!>".)

+
-

Switch to the data state.

+
U+003E GREATER-THAN SIGN (>)
+
Switch to the data state. Emit the comment token.
-

If the end of the file was reached, reconsume the EOF character.

+
EOF
+
Switch to the data state. Reconsume the EOF character. Emit the comment + token.
+ +
U+0000 NULL
+
Append a U+FFFD REPLACEMENT CHARACTER character to the comment token's data.
+ +
Anything else
+
Append the current input character to the comment token's data.
+ +
Markup declaration open state
@@ -100396,9 +100402,9 @@ dictionary StorageEventInit : EventInit { character before and after), then consume those characters and switch to the CDATA section state.

-

Otherwise, this is a parse error. Switch to the bogus comment state. - The next character that is consumed, if any, is the first character that will be in the - comment.

+

Otherwise, this is a parse error. Create a comment token whose data is the empty + string. Switch to the bogus comment state (don't consume anything in the current + state).

Comment start state
@@ -117549,6 +117555,7 @@ INSERT INTERFACES HERE Ido Green, Ignacio Javier, Igor Oliveira, + Ingvar Stepanyan, Iurii Kucherov, Ivan Enderlin, Ivo Emanuel Gonçalves,