swc/crates/swc_html_parser/tests/fixture/text/title-cr/output.json
2022-07-17 12:48:21 +00:00

204 lines
4.9 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,
"raw": "<!DOCTYPE html>"
},
{
"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
},
"data": "\n ",
"raw": "\r "
},
{
"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
},
"data": "\n\n Test\n\n ",
"raw": "\r\r Test\r\r "
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 70,
"end": 71,
"ctxt": 0
},
"data": "\n",
"raw": "\r"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 78,
"end": 79,
"ctxt": 0
},
"data": "\n",
"raw": "\r"
},
{
"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
},
"data": "\n\n",
"raw": "\r\r"
},
{
"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
},
"data": "This is a paragraph.",
"raw": "This is a paragraph."
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 114,
"end": 115,
"ctxt": 0
},
"data": "\n",
"raw": "\r"
},
{
"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
},
"data": "This is another paragraph.",
"raw": "This is another paragraph."
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 148,
"end": 166,
"ctxt": 0
},
"data": "\n\n\n\n",
"raw": "\r\r\r\r"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}