anorgatarrak-wordpress-theme/node_modules/htmlparser2/test/Events/30-cdata_edge-cases.json

22 lines
549 B
JSON
Raw Permalink Normal View History

{
"name": "CDATA edge-cases",
"options": {
"parser": {"recognizeCDATA": true}
},
"html": "<![CDATA><![CDATA[[]]sdaf]]><![CDATA[foo",
"expected": [
{
"event": "processinginstruction",
"data": [
"![cdata",
"![CDATA"
]
},
{ "event": "cdatastart", "data": [] },
{ "event": "text", "data": [ "[]]sdaf" ] },
{ "event": "cdataend", "data": [] },
{ "event": "cdatastart", "data": [] },
{ "event": "text", "data": [ "foo" ] },
{ "event": "cdataend", "data": [] }
]
}