swc/crates/swc_html_parser/tests/fixture/element/br/output.json

239 lines
6.6 KiB
JSON
Raw Normal View History

{
"type": "Document",
"span": {
"start": 1,
"end": 230,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 230,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 4,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 230,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 1,
"end": 225,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 4,
"end": 26,
"ctxt": 0
},
"value": " O'er all the hilltops"
},
{
"type": "Element",
"span": {
"start": 26,
"end": 30,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 30,
"end": 48,
"ctxt": 0
},
"value": "\n Is quiet now,"
},
{
"type": "Element",
"span": {
"start": 48,
"end": 52,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 52,
"end": 76,
"ctxt": 0
},
"value": "\n In all the treetops"
},
{
"type": "Element",
"span": {
"start": 76,
"end": 80,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 80,
"end": 97,
"ctxt": 0
},
"value": "\n Hearest thou"
},
{
"type": "Element",
"span": {
"start": 97,
"end": 101,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 101,
"end": 122,
"ctxt": 0
},
"value": "\n Hardly a breath;"
},
{
"type": "Element",
"span": {
"start": 122,
"end": 126,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 126,
"end": 165,
"ctxt": 0
},
"value": "\n The birds are asleep in the trees:"
},
{
"type": "Element",
"span": {
"start": 165,
"end": 169,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 169,
"end": 195,
"ctxt": 0
},
"value": "\n Wait, soon like these"
},
{
"type": "Element",
"span": {
"start": 195,
"end": 199,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 199,
"end": 225,
"ctxt": 0
},
"value": "\n Thou too shalt rest.\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 229,
"end": 230,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
}
],
"content": null
}
]
}