8000 Add tests for <plaintext> in all insertion modes + in svg · html5lib/html5lib-tests@50568b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50568b5

Browse files
committed
Add tests for <plaintext> in all insertion modes + in svg
See whatwg/html#2252 (comment)
1 parent a7ea5bc commit 50568b5

File tree

1 file changed

+244
-33
lines changed

1 file changed

+244
-33
lines changed

tree-construction/tests18.dat

Lines changed: 244 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
#data
2+
<plaintext></plaintext>
3+
#errors
4+
11: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
5+
23: End of file seen and there were open elements.
6+
11: Unclosed element “plaintext”.
7+
#document
8+
| <html>
9+
| <head>
10+
| <body>
11+
| <plaintext>
12+
| "</plaintext>"
13+
114
#data
215
<!doctype html><plaintext></plaintext>
316
#errors
@@ -10,21 +23,78 @@
1023
| <plaintext>
1124
| "</plaintext>"
1225

26+
#data
27+
<!doctype html><html><plaintext></plaintext>
28+
#errors
29+
44: End of file seen and there were open elements.
30+
32: Unclosed element “plaintext”.
31+
#document
32+
| <!DOCTYPE html>
33+
| <html>
34+
| <head>
35+
| <body>
36+
| <plaintext>
37+
| "</plaintext>"
38+
39+
#data
40+
<!doctype html><head><plaintext></plaintext>
41+
#errors
42+
44: End of file seen and there were open elements.
43+
32: Unclosed element “plaintext”.
44+
#document
45+
| <!DOCTYPE html>
46+
| <html>
47+
| <head>
48+
| <body>
49+
| <plaintext>
50+
| "</plaintext>"
51+
52+
#data
53+
<!doctype html><html><noscript><plaintext></plaintext>
54+
#script-off
55+
#errors
56+
42: Bad start tag in “plaintext” in “head”.
57+
54: End of file seen and there were open elements.
58+
42: Unclosed element “plaintext”.
59+
#document
60+
| <!DOCTYPE html>
61+
| <html>
62+
| <head>
63+
| <noscript>
64+
| <body>
65+
| <plaintext>
66+
| "</plaintext>"
67+
68+
#data
69+
<!doctype html></head><plaintext></plaintext>
70+
#errors
71+
45: End of file seen and there were open elements.
72+
33: Unclosed element “plaintext”.
73+
#document
74+
| <!DOCTYPE html>
75+
| <html>
76+
| <head>
77+
| <body>
78+
| <plaintext>
79+
| "</plaintext>"
80+
81+
#data
82+
<!doctype html><body><plaintext></plaintext>
83+
#errors
84+
44: End of file seen and there were open elements.
85+
32: Unclosed element “plaintext”.
86+
#document
87+
| <!DOCTYPE html>
88+
| <html>
89+
| <head>
90+
| <body>
91+
| <plaintext>
92+
| "</plaintext>"
93+
1394
#data
1495
<!doctype html><table><plaintext></plaintext>
1596
#errors
1697
(1,33): foster-parenting-start-tag
17-
(1,34): foster-parenting-character
18-
(1,35): foster-parenting-character
19-
(1,36): foster-parenting-character
20-
(1,37): foster-parenting-character
21-
(1,38): foster-parenting-character
22-
(1,39): foster-parenting-character
23-
(1,40): foster-parenting-character
24-
(1,41): foster-parenting-character
25-
(1,42): foster-parenting-character
26-
(1,43): foster-parenting-character
27-
(1,44): foster-parenting-character
2898
(1,45): foster-parenting-character
2999
(1,45): eof-in-table
30100
#document
@@ -41,17 +111,6 @@
41111
#errors
42112
(1,40): foster-parenting-start-tag
43113
(1,41): foster-parenting-character
44-
(1,41): foster-parenting-character
45-
(1,41): foster-parenting-character
46-
(1,41): foster-parenting-character
47-
(1,41): foster-parenting-character
48-
(1,41): foster-parenting-character
49-
(1,41): foster-parenting-character
50-
(1,41): foster-parenting-character
51-
(1,41): foster-parenting-character
52-
(1,41): foster-parenting-character
53-
(1,41): foster-parenting-character
54-
(1,41): foster-parenting-character
55114
(1,52): eof-in-table
56115
#document
57116
| <!DOCTYPE html>
@@ -67,17 +126,6 @@
67126
<!doctype html><table><tbody><tr><plaintext></plaintext>
68127
#errors
69128
(1,44): foster-parenting-start-tag
70-
(1,45): foster-parenting-character
71-
(1,46): foster-parenting-character
72-
(1,47): foster-parenting-character
73-
(1,48): foster-parenting-character
74-
(1,49): foster-parenting-character
75-
(1,50): foster-parenting-character
76-
(1,51): foster-parenting-character
77-
(1,52): foster-parenting-character
78-
(1,53): foster-parenting-character
79-
(1,54): foster-parenting-character
80-
(1,55): foster-parenting-character
81129
(1,56): foster-parenting-character
82130
(1,56): eof-in-table
83131
#document
@@ -122,6 +170,169 @@
122170
| <plaintext>
123171
| "</plaintext>"
124172

173+
#data
174+
<!doctype html><table><colgroup><plaintext></plaintext>
175+
#errors
176+
43: Start tag “plaintext” seen in “table”.
177+
55: Misplaced non-space characters inside a table.
178+
55: End of file seen and there were open elements.
179+
43: Unclosed element “plaintext”.
180+
22: Unclosed element “table”.
181+
#document
182+
| <!DOCTYPE html>
183+
| <html>
184+
| <head>
185+
| <body>
186+
| <plaintext>
187+
| "</plaintext>"
188+
| <table>
189+
| <colgroup>
190+
191+
#data
192+
<!doctype html><select><plaintext></plaintext>X
193+
#errors
194+
34: Stray start tag “plaintext”.
195+
46: Stray end tag “plaintext”.
196+
47: End of file seen and there were open elements.
197+
23: Unclosed element “select”.
198+
#document
199+
| <!DOCTYPE html>
200+
| <html>
201+
| <head>
202+
| <body>
203+
| <select>
204+
| "X"
205+
206+
#data
207+
<!doctype html><table><select><plaintext>a<caption>b
208+
#errors
209+
30: Start tag “select” seen in “table”.
210+
41: Stray start tag “plaintext”.
211+
51: “caption” start tag with “select” open.
212+
52: End of file seen and there were open elements.
213+
51: Unclosed element “caption”.
214+
22: Unclosed element “table”.
215+
#document
216+
| <!DOCTYPE html>
217+
| <html>
218+
| <head>
219+
| <body>
220+
| <select>
221+
| "a"
222+
| <table>
223+
| <caption>
224+
| "b"
225+
226+
#data
227+
<!doctype html><template><plaintext>a</template>b
228+
#errors
229+
49: End of file seen and there were open elements.
230+
36: Unclosed element “plaintext”.
231+
25: Unclosed element “template”.
232+
#document
233+
| <!DOCTYPE html>
234+
| <html>
235+
| <head>
236+
| <template>
237+
| <plaintext>
238+
| "a</template>b"
239+
| <body>
240+
241+
#data
242+
<!doctype html><body></body><plaintext></plaintext>
243+
#errors
244+
39: Stray start tag “plaintext”.
245+
51: End of file seen and there were open elements.
246+
39: Unclosed element “plaintext”.
247+
#document
248+
| <!DOCTYPE html>
249+
| <html>
250+
| <head>
251+
| <body>
252+
| <plaintext>
253+
| "</plaintext>"
254+
255+
#data
256+
<!doctype html><frameset><plaintext></plaintext>
257+
#errors
258+
36: Stray start tag “plaintext”.
259+
48: Stray end tag “plaintext”.
260+
48: End of file seen and there were open elements.
261+
25: Unclosed element “frameset”.
262+
#document
263+
| <!DOCTYPE html>
264+
| <html>
265+
| <head>
266+
| <frameset>
267+
268+
#data
269+
<!doctype html><frameset></frameset><plaintext></plaintext>
270+
#errors
271+
47: Stray start tag “plaintext”.
272+
59: Stray end tag “plaintext”.
273+
#document
274+
| <!DOCTYPE html>
275+
| <html>
276+
| <head>
277+
| <frameset>
278+
279+
#data
280+
<!doctype html><body></body></html><plaintext></plaintext>
281+
#errors
282+
46: Stray start tag “plaintext”.
283+
58: End of file seen and there were open elements.
284+
46: Unclosed element “plaintext”.
285+
#document
286+
| <!DOCTYPE html>
287+
| <html>
288+
| <head>
289+
| <body>
290+
| <plaintext>
291+
| "</plaintext>"
292+
293+
#data
294+
<!doctype html><frameset></frameset></html><plaintext></plaintext>
295+
#errors
296+
54: Stray start tag “plaintext”.
297+
66: Stray end tag “plaintext”.
298+
#document
299+
| <!DOCTYPE html>
300+
| <html>
301+
| <head>
302+
| <frameset>
303+
304+
#data
305+
<!doctype html><svg><plaintext>a</plaintext>b
306+
#errors
307+
45: End of file seen and there were open elements.
308+
20: Unclosed element “svg”.
309+
#document
310+
| <!DOCTYPE html>
311+
| <html>
312+
| <head>
313+
| <body>
314+
| <svg svg>
315+
| <svg plaintext>
316+
| "a"
317+
| "b"
318+
319+
#data
320+
<!doctype html><svg><title><plaintext>a</plaintext>b
321+
#errors
322+
52: End of file seen and there were open elements.
323+
38: Unclosed element “plaintext”.
324+
27: Unclosed element “title”.
325+
20: Unclosed element “svg”.
326+
#document
327+
| <!DOCTYPE html>
328+
| <html>
329+
| <head>
330+
| <body>
331+
| <svg svg>
332+
| <svg title>
333+
| <plaintext>
334+
| "a</plaintext>b"
335+
125336
#data
126337
<!doctype html><table><tr><style></script></style>abc
127338
#errors

0 commit comments

Comments
 (0)
0