swc/crates/swc_html_parser/tests/html5lib-tests-fixture/tests23_dat.4.output.json

391 lines
14 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 69,
"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": "Element",
"span": {
"start": 1,
"end": 65,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 4,
"end": 65,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 7,
"end": 11,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"rawName": "id",
"value": "a",
"rawValue": "a"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 12,
"end": 65,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 15,
"end": 19,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"rawName": "id",
"value": "a",
"rawValue": "a"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 20,
"end": 65,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 23,
"end": 27,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"rawName": "id",
"value": "a",
"rawValue": "a"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 28,
"end": 65,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 31,
"end": 65,
"ctxt": 0
},
"tagName": "object",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 39,
"end": 56,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 42,
"end": 46,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"rawName": "id",
"value": "a",
"rawValue": "a"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 47,
"end": 56,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 50,
"end": 54,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"rawName": "id",
"value": "a",
"rawValue": "a"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 55,
"end": 56,
"ctxt": 0
},
"data": "X",
"raw": "X"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 65,
"end": 69,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 4,
"end": 69,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 7,
"end": 11,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"rawName": "id",
"value": "a",
"rawValue": "a"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 12,
"end": 69,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 15,
"end": 19,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"rawName": "id",
"value": "a",
"rawValue": "a"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 20,
"end": 69,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 23,
"end": 27,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"rawName": "id",
"value": "a",
"rawValue": "a"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 28,
"end": 69,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"data": "Y",
"raw": "Y"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}