Skip to content

Commit 7767827

Browse files
committed
Test additional right square brackets before CDATA section end.
1 parent 232056e commit 7767827

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

tree-construction/tests21.dat

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,42 @@
116116
| <svg svg>
117117
| "]>a"
118118

119+
#data
120+
<!DOCTYPE html><svg><![CDATA[foo]]]>
121+
#errors
122+
36: End of file in a foreign namespace context.
123+
#document
124+
| <!DOCTYPE html>
125+
| <html>
126+
| <head>
127+
| <body>
128+
| <svg svg>
129+
| "foo]"
130+
131+
#data
132+
<!DOCTYPE html><svg><![CDATA[foo]]]]>
133+
#errors
134+
36: End of file in a foreign namespace context.
135+
#document
136+
| <!DOCTYPE html>
137+
| <html>
138+
| <head>
139+
| <body>
140+
| <svg svg>
141+
| "foo]]"
142+
143+
#data
144+
<!DOCTYPE html><svg><![CDATA[foo]]]]]>
145+
#errors
146+
36: End of file in a foreign namespace context.
147+
#document
148+
| <!DOCTYPE html>
149+
| <html>
150+
| <head>
151+
| <body>
152+
| <svg svg>
153+
| "foo]]]"
154+
119155
#data
120156
<svg><foreignObject><div><![CDATA[foo]]>
121157
#errors

0 commit comments

Comments
 (0)