877c9a3d73a67816669f11b39a8b88b98d7756d2
[WebKit.git] / LayoutTests / html5lib / resources / tests10.dat
1 #data
2 <!DOCTYPE html><svg></svg>
3 #errors
4 #document
5 | <!DOCTYPE html>
6 | <html>
7 |   <head>
8 |   <body>
9 |     <svg svg>
10
11 #data
12 <!DOCTYPE html><body><svg></svg>
13 #errors
14 #document
15 | <!DOCTYPE html>
16 | <html>
17 |   <head>
18 |   <body>
19 |     <svg svg>
20
21 #data
22 <!DOCTYPE html><body><select><svg></svg></select>
23 #errors
24 35: Stray “svg” start tag.
25 42: Stray end tag “svg”
26 #document
27 | <!DOCTYPE html>
28 | <html>
29 |   <head>
30 |   <body>
31 |     <select>
32
33 #data
34 <!DOCTYPE html><body><select><option><svg></svg></option></select>
35 #errors
36 43: Stray “svg” start tag.
37 50: Stray end tag “svg”
38 #document
39 | <!DOCTYPE html>
40 | <html>
41 |   <head>
42 |   <body>
43 |     <select>
44 |       <option>
45
46 #data
47 <!DOCTYPE html><body><table><svg></svg></table>
48 #errors
49 34: Start tag “svg” seen in “table”.
50 41: Stray end tag “svg”.
51 #document
52 | <!DOCTYPE html>
53 | <html>
54 |   <head>
55 |   <body>
56 |     <svg svg>
57 |     <table>
58
59 #data
60 <!DOCTYPE html><body><table><svg><g>foo</g></svg></table>
61 #errors
62 34: Start tag “svg” seen in “table”.
63 46: Stray end tag “g”.
64 53: Stray end tag “svg”.
65 #document
66 | <!DOCTYPE html>
67 | <html>
68 |   <head>
69 |   <body>
70 |     <svg svg>
71 |       <svg g>
72 |         "foo"
73 |     <table>
74
75 #data
76 <!DOCTYPE html><body><table><svg><g>foo</g><g>bar</g></svg></table>
77 #errors
78 34: Start tag “svg” seen in “table”.
79 46: Stray end tag “g”.
80 58: Stray end tag “g”.
81 65: Stray end tag “svg”.
82 #document
83 | <!DOCTYPE html>
84 | <html>
85 |   <head>
86 |   <body>
87 |     <svg svg>
88 |       <svg g>
89 |         "foo"
90 |       <svg g>
91 |         "bar"
92 |     <table>
93
94 #data
95 <!DOCTYPE html><body><table><tbody><svg><g>foo</g><g>bar</g></svg></tbody></table>
96 #errors
97 41: Start tag “svg” seen in “table”.
98 53: Stray end tag “g”.
99 65: Stray end tag “g”.
100 72: Stray end tag “svg”.
101 #document
102 | <!DOCTYPE html>
103 | <html>
104 |   <head>
105 |   <body>
106 |     <svg svg>
107 |       <svg g>
108 |         "foo"
109 |       <svg g>
110 |         "bar"
111 |     <table>
112 |       <tbody>
113
114 #data
115 <!DOCTYPE html><body><table><tbody><tr><svg><g>foo</g><g>bar</g></svg></tr></tbody></table>
116 #errors
117 45: Start tag “svg” seen in “table”.
118 57: Stray end tag “g”.
119 69: Stray end tag “g”.
120 76: Stray end tag “svg”.
121 #document
122 | <!DOCTYPE html>
123 | <html>
124 |   <head>
125 |   <body>
126 |     <svg svg>
127 |       <svg g>
128 |         "foo"
129 |       <svg g>
130 |         "bar"
131 |     <table>
132 |       <tbody>
133 |         <tr>
134
135 #data
136 <!DOCTYPE html><body><table><tbody><tr><td><svg><g>foo</g><g>bar</g></svg></td></tr></tbody></table>
137 #errors
138 #document
139 | <!DOCTYPE html>
140 | <html>
141 |   <head>
142 |   <body>
143 |     <table>
144 |       <tbody>
145 |         <tr>
146 |           <td>
147 |             <svg svg>
148 |               <svg g>
149 |                 "foo"
150 |               <svg g>
151 |                 "bar"
152
153 #data
154 <!DOCTYPE html><body><table><tbody><tr><td><svg><g>foo</g><g>bar</g></svg><p>baz</td></tr></tbody></table>
155 #errors
156 #document
157 | <!DOCTYPE html>
158 | <html>
159 |   <head>
160 |   <body>
161 |     <table>
162 |       <tbody>
163 |         <tr>
164 |           <td>
165 |             <svg svg>
166 |               <svg g>
167 |                 "foo"
168 |               <svg g>
169 |                 "bar"
170 |             <p>
171 |               "baz"
172
173 #data
174 <!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g></svg><p>baz</caption></table>
175 #errors
176 #document
177 | <!DOCTYPE html>
178 | <html>
179 |   <head>
180 |   <body>
181 |     <table>
182 |       <caption>
183 |         <svg svg>
184 |           <svg g>
185 |             "foo"
186 |           <svg g>
187 |             "bar"
188 |         <p>
189 |           "baz"
190
191 #data
192 <!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
193 #errors
194 70: HTML start tag “p” in a foreign namespace context.
195 81: “table” closed but “caption” was still open.
196 #document
197 | <!DOCTYPE html>
198 | <html>
199 |   <head>
200 |   <body>
201 |     <table>
202 |       <caption>
203 |         <svg svg>
204 |           <svg g>
205 |             "foo"
206 |           <svg g>
207 |             "bar"
208 |         <p>
209 |           "baz"
210 |     <p>
211 |       "quux"
212
213 #data
214 <!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g>baz</table><p>quux
215 #errors
216 78: “table” closed but “caption” was still open.
217 78: Unclosed elements on stack.
218 #document
219 | <!DOCTYPE html>
220 | <html>
221 |   <head>
222 |   <body>
223 |     <table>
224 |       <caption>
225 |         <svg svg>
226 |           <svg g>
227 |             "foo"
228 |           <svg g>
229 |             "bar"
230 |           "baz"
231 |     <p>
232 |       "quux"
233
234 #data
235 <!DOCTYPE html><body><table><colgroup><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
236 #errors
237 44: Start tag “svg” seen in “table”.
238 56: Stray end tag “g”.
239 68: Stray end tag “g”.
240 71: HTML start tag “p” in a foreign namespace context.
241 71: Start tag “p” seen in “table”.
242 #document
243 | <!DOCTYPE html>
244 | <html>
245 |   <head>
246 |   <body>
247 |     <svg svg>
248 |       <svg g>
249 |         "foo"
250 |       <svg g>
251 |         "bar"
252 |     <p>
253 |       "baz"
254 |     <table>
255 |       <colgroup>
256 |     <p>
257 |       "quux"
258
259 #data
260 <!DOCTYPE html><body><table><tr><td><select><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
261 #errors
262 50: Stray “svg” start tag.
263 54: Stray “g” start tag.
264 62: Stray end tag “g”
265 66: Stray “g” start tag.
266 74: Stray end tag “g”
267 77: Stray “p” start tag.
268 88: “table” end tag with “select” open.
269 #document
270 | <!DOCTYPE html>
271 | <html>
272 |   <head>
273 |   <body>
274 |     <table>
275 |       <tbody>
276 |         <tr>
277 |           <td>
278 |             <select>
279 |               "foobarbaz"
280 |     <p>
281 |       "quux"
282
283 #data
284 <!DOCTYPE html><body><table><select><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
285 #errors
286 36: Start tag “select” seen in “table”.
287 42: Stray “svg” start tag.
288 46: Stray “g” start tag.
289 54: Stray end tag “g”
290 58: Stray “g” start tag.
291 66: Stray end tag “g”
292 69: Stray “p” start tag.
293 80: “table” end tag with “select” open.
294 #document
295 | <!DOCTYPE html>
296 | <html>
297 |   <head>
298 |   <body>
299 |     <select>
300 |       "foobarbaz"
301 |     <table>
302 |     <p>
303 |       "quux"
304
305 #data
306 <!DOCTYPE html><body></body></html><svg><g>foo</g><g>bar</g><p>baz
307 #errors
308 41: Stray “svg” start tag.
309 68: HTML start tag “p” in a foreign namespace context.
310 #document
311 | <!DOCTYPE html>
312 | <html>
313 |   <head>
314 |   <body>
315 |     <svg svg>
316 |       <svg g>
317 |         "foo"
318 |       <svg g>
319 |         "bar"
320 |     <p>
321 |       "baz"
322
323 #data
324 <!DOCTYPE html><body></body><svg><g>foo</g><g>bar</g><p>baz
325 #errors
326 34: Stray “svg” start tag.
327 61: HTML start tag “p” in a foreign namespace context.
328 #document
329 | <!DOCTYPE html>
330 | <html>
331 |   <head>
332 |   <body>
333 |     <svg svg>
334 |       <svg g>
335 |         "foo"
336 |       <svg g>
337 |         "bar"
338 |     <p>
339 |       "baz"
340
341 #data
342 <!DOCTYPE html><frameset><svg><g></g><g></g><p><span>
343 #errors
344 31: Stray “svg” start tag.
345 35: Stray “g” start tag.
346 40: Stray end tag “g”
347 44: Stray “g” start tag.
348 49: Stray end tag “g”
349 52: Stray “p” start tag.
350 58: Stray “span” start tag.
351 58: End of file seen and there were open elements.
352 #document
353 | <!DOCTYPE html>
354 | <html>
355 |   <head>
356 |   <frameset>
357
358 #data
359 <!DOCTYPE html><frameset></frameset><svg><g></g><g></g><p><span>
360 #errors
361 42: Stray “svg” start tag.
362 46: Stray “g” start tag.
363 51: Stray end tag “g”
364 55: Stray “g” start tag.
365 60: Stray end tag “g”
366 63: Stray “p” start tag.
367 69: Stray “span” start tag.
368 #document
369 | <!DOCTYPE html>
370 | <html>
371 |   <head>
372 |   <frameset>
373
374 #data
375 <!DOCTYPE html><body xlink:href=foo><svg xlink:href=foo></svg>
376 #errors
377 #document
378 | <!DOCTYPE html>
379 | <html>
380 |   <head>
381 |   <body>
382 |     xlink:href="foo"
383 |     <svg svg>
384 |       xlink href="foo"
385
386 #data
387 <!DOCTYPE html><body xlink:href=foo xml:lang=en><svg><g xml:lang=en xlink:href=foo></g></svg>
388 #errors
389 #document
390 | <!DOCTYPE html>
391 | <html>
392 |   <head>
393 |   <body>
394 |     xlink:href="foo"
395 |     xml:lang="en"
396 |     <svg svg>
397 |       <svg g>
398 |         xlink href="foo"
399 |         xml lang="en"
400
401 #data
402 <!DOCTYPE html><body xlink:href=foo xml:lang=en><svg><g xml:lang=en xlink:href=foo /></svg>
403 #errors
404 #document
405 | <!DOCTYPE html>
406 | <html>
407 |   <head>
408 |   <body>
409 |     xlink:href="foo"
410 |     xml:lang="en"
411 |     <svg svg>
412 |       <svg g>
413 |         xlink href="foo"
414 |         xml lang="en"
415
416 #data
417 <!DOCTYPE html><body xlink:href=foo xml:lang=en><svg><g xml:lang=en xlink:href=foo />bar</svg>
418 #errors
419 #document
420 | <!DOCTYPE html>
421 | <html>
422 |   <head>
423 |   <body>
424 |     xlink:href="foo"
425 |     xml:lang="en"
426 |     <svg svg>
427 |       <svg g>
428 |         xlink href="foo"
429 |         xml lang="en"
430 |       "bar"