cs142/project2/node_modules/htmlparser2/test/Events/30-cdata_edge-cases.json

22 lines
549 B
JSON
Raw Normal View History

2020-08-01 22:26:11 +00:00
{
"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": [] }
]
}