swc/crates/swc_html_parser/tests/fixture/element/br/output.json
2022-07-09 04:19:14 +00:00

373 lines
10 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 335,
"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": 335,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 23,
"end": 32,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "lang",
"value": "en"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 34,
"end": 76,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 40,
"end": 45,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "Element",
"span": {
"start": 45,
"end": 68,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 52,
"end": 60,
"ctxt": 0
},
"data": "Document",
"raw": "Document"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 76,
"end": 77,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
},
{
"type": "Element",
"span": {
"start": 77,
"end": 328,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 83,
"end": 85,
"ctxt": 0
},
"data": "\n\n",
"raw": "\n\n"
},
{
"type": "Element",
"span": {
"start": 85,
"end": 318,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 88,
"end": 110,
"ctxt": 0
},
"data": " O'er all the hilltops",
"raw": " O'er all the hilltops"
},
{
"type": "Element",
"span": {
"start": 110,
"end": 114,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 114,
"end": 132,
"ctxt": 0
},
"data": "\n Is quiet now,",
"raw": "\n Is quiet now,"
},
{
"type": "Element",
"span": {
"start": 132,
"end": 136,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 136,
"end": 160,
"ctxt": 0
},
"data": "\n In all the treetops",
"raw": "\n In all the treetops"
},
{
"type": "Element",
"span": {
"start": 160,
"end": 164,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 164,
"end": 181,
"ctxt": 0
},
"data": "\n Hearest thou",
"raw": "\n Hearest thou"
},
{
"type": "Element",
"span": {
"start": 181,
"end": 185,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 185,
"end": 206,
"ctxt": 0
},
"data": "\n Hardly a breath;",
"raw": "\n Hardly a breath;"
},
{
"type": "Element",
"span": {
"start": 206,
"end": 210,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 210,
"end": 249,
"ctxt": 0
},
"data": "\n The birds are asleep in the trees:",
"raw": "\n The birds are asleep in the trees:"
},
{
"type": "Element",
"span": {
"start": 249,
"end": 253,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 253,
"end": 279,
"ctxt": 0
},
"data": "\n Wait, soon like these",
"raw": "\n Wait, soon like these"
},
{
"type": "Element",
"span": {
"start": 279,
"end": 283,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 283,
"end": 308,
"ctxt": 0
},
"data": "\n Thou too shalt rest.",
"raw": "\n Thou too shalt rest."
},
{
"type": "Element",
"span": {
"start": 308,
"end": 313,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": true
},
{
"type": "Text",
"span": {
"start": 313,
"end": 314,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 318,
"end": 328,
"ctxt": 0
},
"data": "\n\n\n",
"raw": "\n\n\n"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}