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

128 lines
2.9 KiB
JSON
Raw Normal View History

{
"type": "Document",
"span": {
"start": 0,
"end": 32,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 32,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 32,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 0,
"end": 5,
"ctxt": 0
},
"value": "Line1"
},
{
"type": "Element",
"span": {
"start": 5,
"end": 9,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 9,
"end": 14,
"ctxt": 0
},
"value": "Line2"
},
{
"type": "Element",
"span": {
"start": 14,
"end": 18,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 18,
"end": 23,
"ctxt": 0
},
"value": "Line3"
},
{
"type": "Element",
"span": {
"start": 23,
"end": 27,
"ctxt": 0
},
"tagName": "br",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 27,
"end": 32,
"ctxt": 0
},
"value": "Line4"
}
],
"content": null
}
],
"content": null
}
]
}