Skip to content

Commit 9461047

Browse files
committed
No need to handle '\0' in ReadGenericRawTextEndTagName or ReadScriptDataEndTagName
IsAsciiLetter will return false in that case.
1 parent 8a870f5 commit 9461047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

HtmlKit/HtmlTokenizer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ HtmlToken EmitTagToken ()
877877
return null;
878878
}
879879

880-
name.Append (c == '\0' ? '\uFFFD' : c);
880+
name.Append (c);
881881
break;
882882
}
883883
} while (TokenizerState == current);
@@ -1254,7 +1254,7 @@ HtmlToken EmitTagToken ()
12541254
return null;
12551255
}
12561256

1257-
name.Append (c == '\0' ? '\uFFFD' : c);
1257+
name.Append (c);
12581258
break;
12591259
}
12601260
} while (TokenizerState == HtmlTokenizerState.ScriptDataEndTagName);

0 commit comments

Comments
 (0)