Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r221335 - Assertion failure when opening a file with a missing …
…tag closing bracket https://bugs.webkit.org/show_bug.cgi?id=176061 Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2017-08-29 Reviewed by Darin Adler. Source/WebCore: If a tag is missing its closing bracket, the tokenizer just needs to advance() the character position without checking m_currentCharacter != '\n'. Newline character is a valid ending for partially closed tags. Test: fast/tokenizer/missing-script-tag-closing-bracket.html * html/parser/HTMLTokenizer.cpp: (WebCore::HTMLTokenizer::commitToPartialEndTag): LayoutTests: * fast/tokenizer/missing-script-tag-closing-bracket-expected.txt: Added. * fast/tokenizer/missing-script-tag-closing-bracket.html: Added.
- Loading branch information
1 parent
1192d5f
commit 0cb983e
Showing
5 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/tokenizer/missing-script-tag-closing-bracket-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Pass if no assertion failure happens. |
7 changes: 7 additions & 0 deletions
7
LayoutTests/fast/tokenizer/missing-script-tag-closing-bracket.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<body> | ||
<p>Pass if no assertion failure happens.</p> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
</script | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters