-
-
Notifications
You must be signed in to change notification settings - Fork 369
/
01-simple.json
42 lines (42 loc) · 932 Bytes
/
01-simple.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
{
"name": "simple",
"input": "<h1 class=test>adsf</h1>",
"expected": [
{
"event": "opentagname",
"startIndex": 0,
"endIndex": 3,
"data": ["h1"]
},
{
"event": "attribute",
"startIndex": 4,
"endIndex": 14,
"data": ["class", "test", null]
},
{
"event": "opentag",
"startIndex": 0,
"endIndex": 14,
"data": [
"h1",
{
"class": "test"
},
false
]
},
{
"event": "text",
"startIndex": 15,
"endIndex": 19,
"data": ["adsf"]
},
{
"event": "closetag",
"startIndex": 19,
"endIndex": 23,
"data": ["h1", false]
}
]
}