cs142/project2/node_modules/htmlparser2/test/Events/12-long-comment-end.json
2020-08-01 19:26:11 -03:00

20 lines
719 B
JSON

{
"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" ] }
]
}