Files

132 lines
3.3 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 172
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 1,
"end": 16
},
"name": "html",
"publicId": null,
"systemId": null,
"raw": "<!doctype html>"
},
{
"type": "Element",
"span": {
"start": 0,
"end": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 17,
"end": 97
},
"tagName": "script",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 25,
"end": 47
},
"namespace": null,
"prefix": null,
"name": "type",
"rawName": "type",
"value": "text/javascript",
"rawValue": "\"text/javascript\""
}
],
"children": [
{
"type": "Text",
"span": {
"start": 48,
"end": 88
},
"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
},
"data": "\n",
"raw": "\n"
},
{
"type": "Element",
"span": {
"start": 98,
"end": 172
},
"tagName": "script",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 106,
"end": 163
},
"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
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}