{ "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": "" }, { "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//\n", "raw": "\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 = \"\";\n\n console.log(foo);\n", "raw": "\n let foo = \"\";\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 } ] }