50 lines
748 B
JSON
50 lines
748 B
JSON
{
|
|
"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"
|
|
]
|
|
}
|
|
]
|
|
} |