mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +03:00
143 lines
3.6 KiB
JSON
143 lines
3.6 KiB
JSON
{
|
|
"type": "Document",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 172,
|
|
"ctxt": 0
|
|
},
|
|
"mode": "no-quirks",
|
|
"children": [
|
|
{
|
|
"type": "DocumentType",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"name": "html",
|
|
"publicId": null,
|
|
"systemId": null,
|
|
"raw": "<!doctype html>"
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 0,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "html",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 0,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "head",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 97,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "script",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [
|
|
{
|
|
"type": "Attribute",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 47,
|
|
"ctxt": 0
|
|
},
|
|
"namespace": null,
|
|
"prefix": null,
|
|
"name": "type",
|
|
"rawName": "type",
|
|
"value": "text/javascript",
|
|
"rawValue": "\"text/javascript\""
|
|
}
|
|
],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 48,
|
|
"end": 88,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n//<![CDATA[\ndocument.write(\"<\");\n//]]>\n",
|
|
"raw": "\n//<![CDATA[\ndocument.write(\"<\");\n//]]>\n"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 97,
|
|
"end": 98,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n",
|
|
"raw": "\n"
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 98,
|
|
"end": 172,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "script",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 106,
|
|
"end": 163,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n let foo = \"<!--<script>-->\";\n\n console.log(foo);\n",
|
|
"raw": "\n let foo = \"<!--<script>-->\";\n\n console.log(foo);\n"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 0,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "body",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
}
|
|
]
|
|
}
|