cs142/project2/node_modules/htmlparser2/test/Events/10-crazy-attrib.json
2020-08-01 19:26:11 -03:00

52 lines
695 B
JSON

{
"name": "crazy attribute",
"options": {
"handler": {},
"parser": {}
},
"html": "<p < = '' FAIL>stuff</p><a",
"expected": [
{
"event": "opentagname",
"data": [
"p"
]
},
{
"event": "attribute",
"data": [
"<",
""
]
},
{
"event": "attribute",
"data": [
"fail",
""
]
},
{
"event": "opentag",
"data": [
"p",
{
"<": "",
"fail": ""
}
]
},
{
"event": "text",
"data": [
"stuff"
]
},
{
"event": "closetag",
"data": [
"p"
]
}
]
}