swc/crates/swc_html_parser/tests/html5lib-tests-fixture/tests19_dat/104.json

155 lines
3.8 KiB
JSON

{
"type": "Document",
"span": {
"start": 0,
"end": 40,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 40,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 20,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 40,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 15,
"end": 24,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 20,
"end": 21,
"ctxt": 0
},
"value": "a"
},
{
"type": "Element",
"span": {
"start": 21,
"end": 24,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 21,
"end": 40,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"value": "b"
},
{
"type": "Element",
"span": {
"start": 31,
"end": 35,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"value": "c"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 39,
"end": 40,
"ctxt": 0
},
"value": "d"
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
]
}