swc/crates/swc_html_parser/tests/fixture/element/pre-3/output.json
2022-07-09 04:19:14 +00:00

147 lines
3.6 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 105,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 1,
"end": 16,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
},
{
"type": "Element",
"span": {
"start": 17,
"end": 105,
"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": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 24,
"end": 98,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 30,
"end": 32,
"ctxt": 0
},
"data": "\n\n",
"raw": "\n\n"
},
{
"type": "Element",
"span": {
"start": 32,
"end": 88,
"ctxt": 0
},
"tagName": "pre",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 38,
"end": 44,
"ctxt": 0
},
"data": "\n\n\n ",
"raw": "\n\n\n "
},
{
"type": "Element",
"span": {
"start": 44,
"end": 79,
"ctxt": 0
},
"tagName": "code",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 50,
"end": 72,
"ctxt": 0
},
"data": "\n\n\n\n Text\n\n\n\n ",
"raw": "\n\n\n\n Text\n\n\n\n "
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 79,
"end": 82,
"ctxt": 0
},
"data": "\n\n\n",
"raw": "\n\n\n"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 88,
"end": 98,
"ctxt": 0
},
"data": "\n\n\n",
"raw": "\n\n\n"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}