diff options
Diffstat (limited to 'src/tokenizer')
-rw-r--r-- | src/tokenizer/mod.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tokenizer/mod.rs b/src/tokenizer/mod.rs index 274bf44..a8ec39f 100644 --- a/src/tokenizer/mod.rs +++ b/src/tokenizer/mod.rs @@ -791,8 +791,9 @@ impl<Sink: TokenSink> Tokenizer<Sink> { match get_char!(self, input) { '/' => go!(self: clear_temp; to RawEndTagOpen ScriptDataEscaped Escaped), c => match lower_ascii_letter(c) { - Some(cl) => go!(self: clear_temp; push_temp cl; emit '<'; emit c; - to ScriptDataEscapeStart DoubleEscaped), + Some(cl) => { + go!(self: clear_temp; push_temp cl; emit '<'; emit c; to ScriptDataEscapeStart DoubleEscaped) + } None => go!(self: emit '<'; reconsume RawData ScriptDataEscaped Escaped), }, } @@ -1144,8 +1145,9 @@ impl<Sink: TokenSink> Tokenizer<Sink> { go!(self: error; create_doctype; push_doctype_name '\u{fffd}'; to DoctypeName) } '>' => go!(self: error; create_doctype; force_quirks; emit_doctype; to Data), - c => go!(self: create_doctype; push_doctype_name (c.to_ascii_lowercase()); - to DoctypeName), + c => { + go!(self: create_doctype; push_doctype_name (c.to_ascii_lowercase()); to DoctypeName) + } } }, |