swc/crates/swc_html_parser/tests/html5lib-tests-fixture/tests12_dat/0.json

355 lines
14 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 226,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 1,
"end": 16,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 226,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 22,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 16,
"end": 226,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 22,
"end": 226,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 25,
"end": 28,
"ctxt": 0
},
"value": "foo"
},
{
"type": "Element",
"span": {
"start": 28,
"end": 189,
"ctxt": 0
},
"tagName": "math",
"namespace": "http://www.w3.org/1998/Math/MathML",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 34,
"end": 47,
"ctxt": 0
},
"tagName": "mtext",
"namespace": "http://www.w3.org/1998/Math/MathML",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 41,
"end": 47,
"ctxt": 0
},
"tagName": "i",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 44,
"end": 47,
"ctxt": 0
},
"value": "baz"
}
],
"content": null
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 59,
"end": 189,
"ctxt": 0
},
"tagName": "annotation-xml",
"namespace": "http://www.w3.org/1998/Math/MathML",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 75,
"end": 189,
"ctxt": 0
},
"tagName": "svg",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 80,
"end": 93,
"ctxt": 0
},
"tagName": "desc",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 86,
"end": 93,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 89,
"end": 93,
"ctxt": 0
},
"value": "eggs"
}
],
"content": null
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 104,
"end": 149,
"ctxt": 0
},
"tagName": "g",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 107,
"end": 149,
"ctxt": 0
},
"tagName": "foreignObject",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 122,
"end": 129,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 125,
"end": 129,
"ctxt": 0
},
"value": "spam"
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 129,
"end": 149,
"ctxt": 0
},
"tagName": "table",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 149,
"ctxt": 0
},
"tagName": "tbody",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 136,
"end": 149,
"ctxt": 0
},
"tagName": "tr",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 140,
"end": 149,
"ctxt": 0
},
"tagName": "td",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 144,
"end": 149,
"ctxt": 0
},
"tagName": "img",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 182,
"end": 189,
"ctxt": 0
},
"tagName": "g",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 185,
"end": 189,
"ctxt": 0
},
"value": "quux"
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 223,
"end": 226,
"ctxt": 0
},
"value": "bar"
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
]
}