cs142/project3/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json
2020-08-01 19:26:11 -03:00

38 lines
710 B
JSON

{
"name": "entity in attribute",
"options": {
"handler": {},
"parser": {"decodeEntities": true}
},
"html": "<a href='http://example.com/p&#x61;ge?param=value&param2&param3=&lt;val&; & &'>",
"expected": [
{
"event": "opentagname",
"data": [
"a"
]
},
{
"event": "attribute",
"data": [
"href",
"http://example.com/page?param=value&param2&param3=<val&; & &"
]
},
{
"event": "opentag",
"data": [
"a",
{
"href": "http://example.com/page?param=value&param2&param3=<val&; & &"
}
]
},
{
"event": "closetag",
"data": [
"a"
]
}
]
}