swc/crates/swc_html_parser/tests/fixture/element/script-cdata/output.json
2022-04-28 17:27:39 +00:00

98 lines
2.3 KiB
JSON

{
"type": "Document",
"span": {
"start": 0,
"end": 81,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 81,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 81,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 71,
"ctxt": 0
},
"tagName": "script",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "type",
"value": "text/javascript"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 31,
"end": 71,
"ctxt": 0
},
"value": "\n//<![CDATA[\ndocument.write(\"<\");\n//]]>\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 81,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
}
],
"content": null
}
]
}