cs142/project2/node_modules/htmlparser2/test/Events/04-cdata.json

50 lines
748 B
JSON
Raw Normal View History

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