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

341 lines
12 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 223,
"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": 223,
"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": 223,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 22,
"end": 25,
"ctxt": 0
},
"value": "foo"
},
{
"type": "Element",
"span": {
"start": 25,
"end": 186,
"ctxt": 0
},
"tagName": "math",
"namespace": "http://www.w3.org/1998/Math/MathML",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 31,
"end": 44,
"ctxt": 0
},
"tagName": "mtext",
"namespace": "http://www.w3.org/1998/Math/MathML",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 38,
"end": 44,
"ctxt": 0
},
"tagName": "i",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 41,
"end": 44,
"ctxt": 0
},
"value": "baz"
}
],
"content": null
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 56,
"end": 186,
"ctxt": 0
},
"tagName": "annotation-xml",
"namespace": "http://www.w3.org/1998/Math/MathML",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 72,
"end": 186,
"ctxt": 0
},
"tagName": "svg",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 77,
"end": 90,
"ctxt": 0
},
"tagName": "desc",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 83,
"end": 90,
"ctxt": 0
},
"tagName": "b",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 86,
"end": 90,
"ctxt": 0
},
"value": "eggs"
}
],
"content": null
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 101,
"end": 146,
"ctxt": 0
},
"tagName": "g",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 104,
"end": 146,
"ctxt": 0
},
"tagName": "foreignObject",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 119,
"end": 126,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 122,
"end": 126,
"ctxt": 0
},
"value": "spam"
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 126,
"end": 146,
"ctxt": 0
},
"tagName": "table",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 146,
"ctxt": 0
},
"tagName": "tbody",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 133,
"end": 146,
"ctxt": 0
},
"tagName": "tr",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 137,
"end": 146,
"ctxt": 0
},
"tagName": "td",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 141,
"end": 146,
"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": 179,
"end": 186,
"ctxt": 0
},
"tagName": "g",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 182,
"end": 186,
"ctxt": 0
},
"value": "quux"
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 220,
"end": 223,
"ctxt": 0
},
"value": "bar"
}
],
"content": null
}
],
"content": null
}
]
}