Skip to content

Commit 517a4e4

Browse files
committed
Test parsing of the <search> element
See whatwg/html#7320
1 parent fab9829 commit 517a4e4

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

tree-construction/search-element.dat

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#data
2+
<!doctype html><p>foo<search>bar<p>baz
3+
#errors
4+
(1,38): expected-closing-tag-but-got-eof
5+
#document
6+
| <!DOCTYPE html>
7+
| <html>
8+
| <head>
9+
| <body>
10+
| <p>
11+
| "foo"
12+
| <search>
13+
| "bar"
14+
| <p>
15+
| "baz"
16+
17+
#data
18+
<!doctype html><search><p>foo</search>bar
19+
#errors
20+
#document
21+
| <!DOCTYPE html>
22+
| <html>
23+
| <head>
24+
| <body>
25+
| <search>
26+
| <p>
27+
| "foo"
28+
| "bar"
29+
30+
#data
31+
<!DOCTYPE html>xxx<svg><x><g><a><search><b>
32+
#errors
33+
* (1,44) unexpected HTML-like start tag token in foreign content
34+
* (1,44) unexpected end of file
35+
#document
36+
| <!DOCTYPE html>
37+
| <html>
38+
| <head>
39+
| <body>
40+
| "xxx"
41+
| <svg svg>
42+
| <svg x>
43+
| <svg g>
44+
| <svg a>
45+
| <svg search>
46+
| <b>

0 commit comments

Comments
 (0)