wallet-core/node_modules/htmlparser2/test/Events/13-long-cdata-end.json

22 lines
792 B
JSON
Raw Normal View History

2017-05-03 15:35:00 +02: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" ] }
]
}