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

105 lines
2.5 KiB
JSON

{
"type": "Document",
"span": {
"start": 0,
"end": 51,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 42,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 42,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"tagName": "foo",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "bar",
"value": "baz"
}
],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 21,
"end": 42,
"ctxt": 0
},
"tagName": "potato",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "quack",
"value": "duck"
}
],
"children": [],
"content": null
}
],
"content": null
}
],
"content": null
}
]
}