Skip to content

Commit 6ae5928

Browse files
committed
Fix html5lib#3: test ">" in script data double escaped dash state
This test is written to ensure that it is treated differently to how it is in the script data double escaped dash dash state, as this was the bug html5lib-python used to have.
1 parent 1c6c2c0 commit 6ae5928

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tree-construction/scriptdata01.dat

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,16 @@ FOO<script type="text/plain">'<!-- <sCrIpt/'</script>BAR</script>QUX
350350
| type="text/plain"
351351
| "'<!-- <sCrIpt/'</script>BAR"
352352
| "QUX"
353+
354+
#data
355+
FOO<script><!--<script>-></script>--></script>QUX
356+
#errors
357+
(1,3): expected-doctype-but-got-chars
358+
#document
359+
| <html>
360+
| <head>
361+
| <body>
362+
| "FOO"
363+
| <script>
364+
| "<!--<script>-></script>-->"
365+
| "QUX"

0 commit comments

Comments
 (0)