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

201 lines
4.7 KiB
JSON
Raw Normal View History

{
"type": "Document",
"span": {
"start": 1,
"end": 108,
"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": 0,
"end": 108,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 18,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 108,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 17,
"end": 22,
"ctxt": 0
},
"value": "Text\n"
},
{
"type": "Element",
"span": {
"start": 22,
"end": 31,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 27,
"end": 31,
"ctxt": 0
},
"value": "Text"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 37,
"end": 38,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 38,
"end": 53,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 43,
"end": 53,
"ctxt": 0
},
"value": "\n Text\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 59,
"end": 60,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 60,
"end": 78,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 65,
"end": 78,
"ctxt": 0
},
"value": "\nText\n\n\nText\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 84,
"end": 85,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 85,
"end": 101,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 90,
"end": 101,
"ctxt": 0
},
"value": "Text\n\n\nText"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 107,
"end": 108,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
}
],
"content": null
}
]
}