libreccm-legacy/trunk-images/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json

38 lines
671 B
JSON

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