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

162 lines
4.2 KiB
JSON

{
"type": "Document",
"span": {
"start": 0,
"end": 16,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 16,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 5,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 16,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 10,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "x",
"value": null
}
],
"children": [
{
"type": "Text",
"span": {
"start": 5,
"end": 6,
"ctxt": 0
},
"value": "0"
},
{
"type": "Element",
"span": {
"start": 6,
"end": 10,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 9,
"end": 10,
"ctxt": 0
},
"value": "1"
}
],
"content": null
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 6,
"end": 16,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 10,
"end": 16,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "y",
"value": null
}
],
"children": [
{
"type": "Text",
"span": {
"start": 15,
"end": 16,
"ctxt": 0
},
"value": "2"
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
]
}