swc/crates/swc_html_parser/tests/html5lib-tests-fixture/adoption01_dat/9.json

247 lines
6.8 KiB
JSON

{
"type": "Document",
"span": {
"start": 0,
"end": 40,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 36,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 36,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 26,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 3,
"end": 4,
"ctxt": 0
},
"value": "1"
},
{
"type": "Element",
"span": {
"start": 4,
"end": 26,
"ctxt": 0
},
"tagName": "s",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"value": "A"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"value": "2"
},
{
"type": "Element",
"span": {
"start": 15,
"end": 26,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"value": "B"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 25,
"end": 26,
"ctxt": 0
},
"value": "3"
}
],
"content": null
}
],
"content": null
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 4,
"end": 31,
"ctxt": 0
},
"tagName": "s",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"value": "A"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 15,
"end": 31,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"value": "B"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"value": "4"
}
],
"content": null
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 15,
"end": 36,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"value": "B"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 35,
"end": 36,
"ctxt": 0
},
"value": "5"
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
]
}