diff options
Diffstat (limited to 'node_modules/htmlparser2/test/Events/21-entity_in_attribute.json')
| -rw-r--r-- | node_modules/htmlparser2/test/Events/21-entity_in_attribute.json | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json b/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json new file mode 100644 index 00000000..77eb4f36 --- /dev/null +++ b/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json @@ -0,0 +1,38 @@ +{ + "name": "entity in attribute", + "options": { + "handler": {}, + "parser": {"decodeEntities": true} + }, + "html": "<a href='http://example.com/page?param=value¶m2=<val'>", + "expected": [ + { + "event": "opentagname", + "data": [ + "a" + ] + }, + { + "event": "attribute", + "data": [ + "href", + "http://example.com/page?param=value¶m2=<val" + ] + }, + { + "event": "opentag", + "data": [ + "a", + { + "href": "http://example.com/page?param=value¶m2=<val" + } + ] + }, + { + "event": "closetag", + "data": [ + "a" + ] + } + ] +}
\ No newline at end of file |
