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

63 lines
907 B
JSON

{
"name": "Entities in attributes",
"options": {
"handler": {},
"parser": {"decodeEntities": true}
},
"html": "<foo bar=&amp; baz=\"&amp;\" boo='&amp;' noo=>",
"expected": [
{
"event": "opentagname",
"data": [
"foo"
]
},
{
"event": "attribute",
"data": [
"bar",
"&"
]
},
{
"event": "attribute",
"data": [
"baz",
"&"
]
},
{
"event": "attribute",
"data": [
"boo",
"&"
]
},
{
"event": "attribute",
"data": [
"noo",
""
]
},
{
"event": "opentag",
"data": [
"foo",
{
"bar": "&",
"baz": "&",
"boo": "&",
"noo": ""
}
]
},
{
"event": "closetag",
"data": [
"foo"
]
}
]
}