swc/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat.75.output.json

230 lines
6.8 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 61,
"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": 61,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 6,
"end": 11,
"ctxt": 0
},
"data": " abc ",
"raw": " abc "
},
{
"type": "Element",
"span": {
"start": 11,
"end": 27,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 14,
"end": 19,
"ctxt": 0
},
"data": " def ",
"raw": " def "
},
{
"type": "Element",
"span": {
"start": 19,
"end": 27,
"ctxt": 0
},
"tagName": "i",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 22,
"end": 27,
"ctxt": 0
},
"data": " ghi ",
"raw": " ghi "
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 19,
"end": 22,
"ctxt": 0
},
"tagName": "i",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 27,
"end": 57,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 30,
"end": 48,
"ctxt": 0
},
"tagName": "i",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 30,
"end": 39,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 30,
"end": 35,
"ctxt": 0
},
"data": " jkl ",
"raw": " jkl "
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 39,
"end": 44,
"ctxt": 0
},
"data": " mno ",
"raw": " mno "
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 48,
"end": 53,
"ctxt": 0
},
"data": " pqr ",
"raw": " pqr "
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 57,
"end": 61,
"ctxt": 0
},
"data": " stu",
"raw": " stu"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}