swc/crates/swc_html_parser/tests/fixture/text/title-cr/output.json
2022-06-02 04:00:32 +00:00

188 lines
4.3 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 166,
"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": 166,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 24,
"end": 78,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 30,
"end": 35,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 35,
"end": 70,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 42,
"end": 62,
"ctxt": 0
},
"value": "\n\n Test\n\n "
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 70,
"end": 71,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 78,
"end": 79,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 79,
"end": 166,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 85,
"end": 87,
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 87,
"end": 114,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 90,
"end": 110,
"ctxt": 0
},
"value": "This is a paragraph."
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 114,
"end": 115,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 115,
"end": 148,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 118,
"end": 144,
"ctxt": 0
},
"value": "This is another paragraph."
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 148,
"end": 166,
"ctxt": 0
},
"value": "\n\n\n\n"
}
],
"content": null
}
],
"content": null
}
]
}