cs142/project3/node_modules/htmlparser2/test/Events/12-long-comment-end.json

20 lines
719 B
JSON
Raw Permalink Normal View History

2020-08-01 22:26:11 +00:00
{
"name": "Long comment ending",
"options": {
"handler": {},
"parser": {}
},
"html": "<meta id='before'><!-- text ---><meta id='after'>",
"expected": [
{ "event": "opentagname", "data": [ "meta" ] },
{ "event": "attribute", "data": [ "id", "before" ] },
{ "event": "opentag", "data": [ "meta", {"id": "before"} ] },
{ "event": "closetag", "data": [ "meta" ] },
{ "event": "comment", "data": [ " text -" ] },
{ "event": "commentend", "data": [] },
{ "event": "opentagname", "data": [ "meta" ] },
{ "event": "attribute", "data": [ "id", "after" ] },
{ "event": "opentag", "data": [ "meta", {"id": "after"} ] },
{ "event": "closetag", "data": [ "meta" ] }
]
}