wallet-core/node_modules/htmlparser2/test/Events/04-cdata.json

43 lines
634 B
JSON
Raw Normal View History

2017-05-03 15:35:00 +02:00
{
"name": "CDATA",
"options": {
"handler": {},
"parser": {"xmlMode": true}
},
"html": "<tag><![CDATA[ asdf ><asdf></adsf><> fo]]></tag>",
"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"
]
}
]
}