first commit
This commit is contained in:
38
build/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json
generated
vendored
Normal file
38
build/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "entity in attribute",
|
||||
"options": {
|
||||
"handler": {},
|
||||
"parser": {"decodeEntities": true}
|
||||
},
|
||||
"html": "<a href='http://example.com/page?param=value¶m2¶m3=<val&; & &'>",
|
||||
"expected": [
|
||||
{
|
||||
"event": "opentagname",
|
||||
"data": [
|
||||
"a"
|
||||
]
|
||||
},
|
||||
{
|
||||
"event": "attribute",
|
||||
"data": [
|
||||
"href",
|
||||
"http://example.com/page?param=value¶m2¶m3=<val&; & &"
|
||||
]
|
||||
},
|
||||
{
|
||||
"event": "opentag",
|
||||
"data": [
|
||||
"a",
|
||||
{
|
||||
"href": "http://example.com/page?param=value¶m2¶m3=<val&; & &"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"event": "closetag",
|
||||
"data": [
|
||||
"a"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user