swc/crates/swc_html_parser/tests/fixture/text/basic/output.json

190 lines
4.5 KiB
JSON

{
"type": "Document",
"span": {
"start": 0,
"end": 91,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 91,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 91,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 0,
"end": 5,
"ctxt": 0
},
"value": "Text\n"
},
{
"type": "Element",
"span": {
"start": 5,
"end": 14,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 10,
"end": 14,
"ctxt": 0
},
"value": "Text"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 20,
"end": 21,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 21,
"end": 36,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 26,
"end": 36,
"ctxt": 0
},
"value": "\n Text\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 42,
"end": 43,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 43,
"end": 61,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 48,
"end": 61,
"ctxt": 0
},
"value": "\nText\n\n\nText\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 67,
"end": 68,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 68,
"end": 84,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 73,
"end": 84,
"ctxt": 0
},
"value": "Text\n\n\nText"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 90,
"end": 91,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
}
],
"content": null
}
]
}