swc/crates/swc_html_parser/tests/recovery/comment/cdata-1/output.json
2022-04-28 17:27:39 +00:00

103 lines
2.9 KiB
JSON

{
"type": "Document",
"span": {
"start": 0,
"end": 711,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "Comment",
"span": {
"start": 0,
"end": 347,
"ctxt": 0
},
"data": "[CDATA[\nWithin this Character Data block I can\nuse double dashes as much as I want (along with <, &, ', and \")\n*and* %MyParamEntity; will be expanded to the text\n\"Has been expanded\" ... however, I can't use\nthe CEND sequence. If I need to use CEND I must escape one of the\nbrackets or the greater-than sign using concatenated CDATA sections.\n]]"
},
{
"type": "Element",
"span": {
"start": 0,
"end": 711,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 353,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 711,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 348,
"end": 357,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 353,
"end": 357,
"ctxt": 0
},
"value": "test"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 363,
"end": 364,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Comment",
"span": {
"start": 364,
"end": 711,
"ctxt": 0
},
"data": "[cdata[\nWithin this Character Data block I can\nuse double dashes as much as I want (along with <, &, ', and \")\n*and* %MyParamEntity; will be expanded to the text\n\"Has been expanded\" ... however, I can't use\nthe CEND sequence. If I need to use CEND I must escape one of the\nbrackets or the greater-than sign using concatenated CDATA sections.\n]]"
}
],
"content": null
}
],
"content": null
}
]
}