swc/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat.2.output.json

138 lines
3.2 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 33,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 1,
"end": 6,
"ctxt": 0
},
"data": "Line1",
"raw": "Line1"
},
{
"type": "Element",
"span": {
"start": 6,
"end": 10,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 10,
"end": 15,
"ctxt": 0
},
"data": "Line2",
"raw": "Line2"
},
{
"type": "Element",
"span": {
"start": 15,
"end": 19,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 19,
"end": 24,
"ctxt": 0
},
"data": "Line3",
"raw": "Line3"
},
{
"type": "Element",
"span": {
"start": 24,
"end": 28,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 28,
"end": 33,
"ctxt": 0
},
"data": "Line4",
"raw": "Line4"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}