Skip to content

Commit

Permalink
Re-add 'Fix a mistake in document.write <meta charset> test'
Browse files Browse the repository at this point in the history
The fix in 1481185 was accidentally reverted in the next commit c258849
  • Loading branch information
zcorpan committed Sep 14, 2021
1 parent 655a2c3 commit fc10383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
document.write('<plaintext>');
<\/script>
<\!-- speculative case in document.write -->
<meta charset=windows-1254><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=${uuid}&amp;encodingcheck=&Gbreve;"><\/script>
<meta\ charset=windows-1254><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=${uuid}&amp;encodingcheck=&Gbreve;"><\/script>
`);
</script>
2 changes: 1 addition & 1 deletion html/syntax/speculative-parsing/tools/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def generate_tests(testcase, tentative):

html_testcase_markup = template_testcase_markup.format(url_wptserve_sub)
html_nonspeculative_testcase_markup = template_nonspeculative_testcase_markup.format(url_wptserve_sub)
js_testcase_markup = template_testcase_markup.format(url_js_sub).replace(u"</script>", u"<\/script>")
js_testcase_markup = template_testcase_markup.format(url_js_sub).replace(u"</script>", u"<\/script>").replace(u"<meta charset", u"<meta\ charset")

if test_nonspeculative == u'true':
nonspeculative = template_nonspeculative.format(preamble=preamble, encoding_decl=encoding_decl, title=title, nonspeculative_testcase_markup=html_nonspeculative_testcase_markup, delay=delay)
Expand Down

0 comments on commit fc10383

Please sign in to comment.