.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / domhandler / test / cases / 25-with-end-indices.json
1 {
2   "name": "withEndIndices adds correct endIndex properties",
3   "options": {"withStartIndices": true,"withEndIndices": true},
4   "streaming": false,
5   "html": "<!DOCTYPE html> <html> <title>The Title</title> <body class='foo'>Hello world <p></p></body> <!-- the comment --> </html> ",
6   "expected": [
7     {
8       "endIndex": null,
9       "name": "!doctype",
10       "data": "!DOCTYPE html",
11       "type": "directive"
12     },
13     {
14       "type": "text",
15       "data": " ",
16       "endIndex": 15
17     },
18     {
19       "endIndex": 120,
20       "type": "tag",
21       "name": "html",
22       "attribs": {},
23       "parent": null,
24       "children": [
25         {
26           "endIndex": 22,
27           "type": "text",
28           "data": " "
29         },
30         {
31           "endIndex": 46,
32           "type": "tag",
33           "name": "title",
34           "attribs": {},
35           "children": [
36             {
37               "endIndex": 38,
38               "data": "The Title",
39               "type": "text"
40             }
41           ]
42         },
43         {
44           "endIndex": 47,
45           "type": "text",
46           "data": " "
47         },
48         {
49           "endIndex": 91,
50           "type": "tag",
51           "name": "body",
52           "attribs": {"class": "foo"},
53           "children": [
54             {
55               "endIndex": 77,
56               "data": "Hello world ",
57               "type": "text"
58             },
59             {
60               "endIndex": 84,
61               "type": "tag",
62               "name": "p",
63               "attribs": {},
64               "children": []
65             }
66           ]
67         },
68         {
69           "endIndex": 92,
70           "type": "text",
71           "data": " "
72         },
73         {
74           "endIndex": 112,
75           "type": "comment",
76           "data": " the comment "
77         },
78         {
79           "endIndex": 113,
80           "type": "text",
81           "data": " "
82         }
83       ]
84     }
85   ]
86 }