swc/crates/swc_html_parser/tests/html5lib-tests-fixture/webkit01_dat/4.json

140 lines
3.3 KiB
JSON

{
"type": "Document",
"span": {
"start": 0,
"end": 71,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 65,
"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": 65,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 10,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 5,
"end": 10,
"ctxt": 0
},
"value": "Hello"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 16,
"end": 17,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 17,
"end": 47,
"ctxt": 0
},
"tagName": "script",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 25,
"end": 47,
"ctxt": 0
},
"value": "\nconsole.log(\"PASS\");\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 57,
"end": 65,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 62,
"end": 65,
"ctxt": 0
},
"value": "Bye"
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
]
}