swc/crates/swc_html_parser/tests/html5lib-tests-fixture/webkit01_dat.43.output.json

176 lines
5.1 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 57,
"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": 57,
"ctxt": 0
},
"tagName": "ul",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 5,
"end": 30,
"ctxt": 0
},
"tagName": "li",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 9,
"end": 25,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 14,
"end": 22,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "id",
"rawName": "id",
"value": "foo",
"rawValue": "'foo'"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 24,
"end": 25,
"ctxt": 0
},
"data": "A",
"raw": "A"
}
],
"content": null,
"isSelfClosing": true
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 30,
"end": 52,
"ctxt": 0
},
"tagName": "li",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"data": "B",
"raw": "B"
},
{
"type": "Element",
"span": {
"start": 35,
"end": 47,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 40,
"end": 41,
"ctxt": 0
},
"data": "C",
"raw": "C"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}