first commit
This commit is contained in:
62
build/node_modules/htmlparser2/test/Events/27-entities_in_attributes.json
generated
vendored
Normal file
62
build/node_modules/htmlparser2/test/Events/27-entities_in_attributes.json
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"name": "Entities in attributes",
|
||||
"options": {
|
||||
"handler": {},
|
||||
"parser": {"decodeEntities": true}
|
||||
},
|
||||
"html": "<foo bar=& baz=\"&\" boo='&' 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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user