swc/crates/swc_html_parser/tests/fixture/element/html/output.json
2022-06-08 03:55:11 +00:00

137 lines
2.9 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 95,
"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": 95,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 23,
"end": 32,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "lang",
"value": "en"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 34,
"end": 72,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 40,
"end": 41,
"ctxt": 0
},
"data": " "
},
{
"type": "Element",
"span": {
"start": 41,
"end": 64,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 48,
"end": 56,
"ctxt": 0
},
"data": "Document"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 64,
"end": 65,
"ctxt": 0
},
"data": " "
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 72,
"end": 73,
"ctxt": 0
},
"data": " "
},
{
"type": "Element",
"span": {
"start": 73,
"end": 88,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 79,
"end": 88,
"ctxt": 0
},
"data": " "
}
],
"content": null
}
],
"content": null
}
]
}