• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "tests": [
3        {
4            "fragmentContext": null,
5            "description": "<!doctype html><p>foo<search>bar<p>baz",
6            "input": "<!doctype html><p>foo<search>bar<p>baz",
7            "output": [
8                [
9                    "DOCTYPE",
10                    "html",
11                    null,
12                    null,
13                    true
14                ],
15                [
16                    "StartTag",
17                    "p",
18                    {}
19                ],
20                [
21                    "Character",
22                    "foo"
23                ],
24                [
25                    "StartTag",
26                    "search",
27                    {}
28                ],
29                [
30                    "Character",
31                    "bar"
32                ],
33                [
34                    "StartTag",
35                    "p",
36                    {}
37                ],
38                [
39                    "Character",
40                    "baz"
41                ]
42            ]
43        },
44        {
45            "fragmentContext": null,
46            "description": "<!doctype html><search><p>foo</search>bar",
47            "input": "<!doctype html><search><p>foo</search>bar",
48            "output": [
49                [
50                    "DOCTYPE",
51                    "html",
52                    null,
53                    null,
54                    true
55                ],
56                [
57                    "StartTag",
58                    "search",
59                    {}
60                ],
61                [
62                    "StartTag",
63                    "p",
64                    {}
65                ],
66                [
67                    "Character",
68                    "foo"
69                ],
70                [
71                    "EndTag",
72                    "search"
73                ],
74                [
75                    "Character",
76                    "bar"
77                ]
78            ]
79        },
80        {
81            "fragmentContext": null,
82            "description": "<!DOCTYPE html>xxx<svg><x><g><a><search><b>",
83            "input": "<!DOCTYPE html>xxx<svg><x><g><a><search><b>",
84            "output": [
85                [
86                    "DOCTYPE",
87                    "html",
88                    null,
89                    null,
90                    true
91                ],
92                [
93                    "Character",
94                    "xxx"
95                ],
96                [
97                    "StartTag",
98                    "svg",
99                    {}
100                ],
101                [
102                    "StartTag",
103                    "x",
104                    {}
105                ],
106                [
107                    "StartTag",
108                    "g",
109                    {}
110                ],
111                [
112                    "StartTag",
113                    "a",
114                    {}
115                ],
116                [
117                    "StartTag",
118                    "search",
119                    {}
120                ],
121                [
122                    "StartTag",
123                    "b",
124                    {}
125                ]
126            ]
127        }
128    ]
129}