swc/crates/swc_html_parser/tests/fixture/element/p-1/output.json
2022-07-17 12:48:21 +00:00

148 lines
3.5 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 111,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 1,
"end": 16,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null,
"raw": "<!DOCTYPE html>"
},
{
"type": "Element",
"span": {
"start": 17,
"end": 111,
"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": 111,
"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": 59,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 35,
"end": 55,
"ctxt": 0
},
"data": "This is a paragraph.",
"raw": "This is a paragraph."
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 59,
"end": 60,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
},
{
"type": "Element",
"span": {
"start": 60,
"end": 93,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 63,
"end": 89,
"ctxt": 0
},
"data": "This is another paragraph.",
"raw": "This is another paragraph."
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 93,
"end": 111,
"ctxt": 0
},
"data": "\n\n\n\n",
"raw": "\n\n\n\n"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}