cs142/project2/node_modules/htmlparser2/test/Events/16-double_attribs.json
2020-08-01 19:26:11 -03:00

45 lines
625 B
JSON

{
"name": "double attribute",
"options": {
"handler": {},
"parser": {}
},
"html": "<h1 class=test class=boo></h1>",
"expected": [
{
"event": "opentagname",
"data": [
"h1"
]
},
{
"event": "attribute",
"data": [
"class",
"test"
]
},
{
"event": "attribute",
"data": [
"class",
"boo"
]
},
{
"event": "opentag",
"data": [
"h1",
{
"class": "test"
}
]
},
{
"event": "closetag",
"data": [
"h1"
]
}
]
}