cs142/project2/node_modules/htmlparser2/test/Events/13-long-cdata-end.json

22 lines
792 B
JSON
Raw Normal View History

2020-08-01 22:26:11 +00:00
{
"name": "Long CDATA ending",
"options": {
"handler": {},
"parser": {"xmlMode": true}
},
"html": "<before /><tag><![CDATA[ text ]]]></tag><after />",
"expected": [
{ "event": "opentagname", "data": [ "before" ] },
{ "event": "opentag", "data": [ "before", {} ] },
{ "event": "closetag", "data": [ "before" ] },
{ "event": "opentagname", "data": [ "tag" ] },
{ "event": "opentag", "data": [ "tag", {} ] },
{ "event": "cdatastart", "data": [] },
{ "event": "text", "data": [ " text ]" ] },
{ "event": "cdataend", "data": [] },
{ "event": "closetag", "data": [ "tag" ] },
{ "event": "opentagname", "data": [ "after" ] },
{ "event": "opentag", "data": [ "after", {} ] },
{ "event": "closetag", "data": [ "after" ] }
]
}