cs142/project2/node_modules/htmlparser2/test/Events/16-double_attribs.json

45 lines
625 B
JSON
Raw Normal View History

2020-08-01 22:26:11 +00:00
{
"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"
]
}
]
}