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

140 lines
3.3 KiB
JSON
Raw Normal View History

{
"type": "Document",
"span": {
"start": 0,
"end": 89,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 83,
"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": 83,
"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": 65,
"ctxt": 0
},
"tagName": "script",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 25,
"end": 65,
"ctxt": 0
},
"value": "\nconsole.log(\"FOO<span>BAR</span>BAZ\");\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 74,
"end": 75,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 75,
"end": 83,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 80,
"end": 83,
"ctxt": 0
},
"value": "Bye"
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
]
}