swc/crates/swc_html_parser/tests/fixture/element/br/output.json
2022-05-14 01:43:52 +00:00

323 lines
8.5 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 330,
"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": 323,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "lang",
"value": "en"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 34,
"end": 69,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 40,
"end": 45,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 45,
"end": 60,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 52,
"end": 60,
"ctxt": 0
},
"value": "Document"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 76,
"end": 77,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 77,
"end": 323,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 83,
"end": 85,
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 85,
"end": 309,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 88,
"end": 110,
"ctxt": 0
},
"value": " 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
},
{
"type": "Text",
"span": {
"start": 114,
"end": 132,
"ctxt": 0
},
"value": "\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
},
{
"type": "Text",
"span": {
"start": 136,
"end": 160,
"ctxt": 0
},
"value": "\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
},
{
"type": "Text",
"span": {
"start": 164,
"end": 181,
"ctxt": 0
},
"value": "\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
},
{
"type": "Text",
"span": {
"start": 185,
"end": 206,
"ctxt": 0
},
"value": "\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
},
{
"type": "Text",
"span": {
"start": 210,
"end": 249,
"ctxt": 0
},
"value": "\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
},
{
"type": "Text",
"span": {
"start": 253,
"end": 279,
"ctxt": 0
},
"value": "\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
},
{
"type": "Text",
"span": {
"start": 283,
"end": 309,
"ctxt": 0
},
"value": "\n Thou too shalt rest.\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 313,
"end": 323,
"ctxt": 0
},
"value": "\n\n\n"
}
],
"content": null
}
],
"content": null
}
]
}