swc/crates/swc_html_parser/tests/fixture/element/p-1/output.json
2022-04-28 17:27:39 +00:00

137 lines
3.1 KiB
JSON

{
"type": "Document",
"span": {
"start": 0,
"end": 110,
"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": 110,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 29,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 23,
"end": 110,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 29,
"end": 31,
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 31,
"end": 54,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 34,
"end": 54,
"ctxt": 0
},
"value": "This is a paragraph."
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 58,
"end": 59,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 59,
"end": 88,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 62,
"end": 88,
"ctxt": 0
},
"value": "This is another paragraph."
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 92,
"end": 110,
"ctxt": 0
},
"value": "\n\n\n\n"
}
],
"content": null
}
],
"content": null
}
]
}