swc/crates/swc_html_parser/tests/fixture/comment/after-body/output.json

263 lines
6.3 KiB
JSON
Raw Normal View History

{
"type": "Document",
"span": {
"start": 0,
"end": 343,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
},
{
"type": "Element",
"span": {
"start": 16,
"end": 335,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"name": "lang",
"value": "en"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 33,
"end": 294,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 39,
"end": 44,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 44,
"end": 66,
"ctxt": 0
},
"tagName": "meta",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"name": "charset",
"value": "UTF-8"
}
],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 66,
"end": 71,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 71,
"end": 207,
"ctxt": 0
},
"tagName": "meta",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"name": "name",
"value": "viewport"
},
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"name": "content",
"value": "width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
}
],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 207,
"end": 212,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 212,
"end": 265,
"ctxt": 0
},
"tagName": "meta",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"name": "http-equiv",
"value": "X-UA-Compatible"
},
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"name": "content",
"value": "ie=edge"
}
],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 265,
"end": 270,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 270,
"end": 285,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 277,
"end": 285,
"ctxt": 0
},
"value": "Document"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 293,
"end": 294,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 301,
"end": 302,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 302,
"end": 336,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 308,
"end": 336,
"ctxt": 0
},
"value": "\nTest\n\n\n"
}
],
"content": null
},
{
"type": "Comment",
"span": {
"start": 322,
"end": 335,
"ctxt": 0
},
"data": " Test "
}
],
"content": null
}
]
}