forked from fb55/htmlparser2
/
07g-end_slash--consumed_by_attrib_value_in_void.json
54 lines (54 loc) · 1.32 KB
/
07g-end_slash--consumed_by_attrib_value_in_void.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"name": "end slash: as part of attrib value of void element",
"input": "<img src=gif.com/123/><p>Hold the line.",
"expected": [
{
"event": "opentagname",
"startIndex": 0,
"endIndex": 4,
"data": ["img"]
},
{
"event": "attribute",
"startIndex": 5,
"endIndex": 21,
"data": ["src", "gif.com/123/", null]
},
{
"event": "opentag",
"startIndex": 0,
"endIndex": 21,
"data": ["img", { "src": "gif.com/123/" }, false]
},
{
"event": "closetag",
"startIndex": 0,
"endIndex": 21,
"data": ["img", true]
},
{
"event": "opentagname",
"startIndex": 22,
"endIndex": 24,
"data": ["p"]
},
{
"event": "opentag",
"startIndex": 22,
"endIndex": 24,
"data": ["p", {}, false]
},
{
"event": "text",
"startIndex": 25,
"endIndex": 38,
"data": ["Hold the line."]
},
{
"event": "closetag",
"startIndex": 39,
"endIndex": 39,
"data": ["p", true]
}
]
}