swc/crates/swc_html_parser/tests/recovery/element/colgroup/output.json
2022-05-17 08:23:24 +00:00

372 lines
10 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 300,
"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": 17,
"end": 293,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 23,
"end": 32,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "lang",
"value": "en"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 34,
"end": 69,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 40,
"end": 45,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 45,
"end": 60,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 52,
"end": 60,
"ctxt": 0
},
"value": "Document"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 76,
"end": 77,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 77,
"end": 293,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 84,
"end": 283,
"ctxt": 0
},
"tagName": "table",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 91,
"end": 105,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 96,
"end": 129,
"ctxt": 0
},
"tagName": "caption",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 105,
"end": 129,
"ctxt": 0
},
"value": "Superheros and sidekicks"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 139,
"end": 154,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 144,
"end": 163,
"ctxt": 0
},
"tagName": "colgroup",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 154,
"end": 163,
"ctxt": 0
},
"value": "\n "
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 169,
"end": 183,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 0,
"end": 263,
"ctxt": 0
},
"tagName": "colgroup",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 178,
"end": 183,
"ctxt": 0
},
"tagName": "col",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 183,
"end": 192,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 192,
"end": 221,
"ctxt": 0
},
"tagName": "col",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 197,
"end": 205,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "span",
"value": "2"
},
{
"type": "Attribute",
"span": {
"start": 206,
"end": 220,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "class",
"value": "batman"
}
],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 221,
"end": 230,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 230,
"end": 258,
"ctxt": 0
},
"tagName": "col",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 235,
"end": 243,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "span",
"value": "2"
},
{
"type": "Attribute",
"span": {
"start": 244,
"end": 257,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "class",
"value": "flash"
}
],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 258,
"end": 263,
"ctxt": 0
},
"value": "\n "
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 274,
"end": 283,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 283,
"end": 293,
"ctxt": 0
},
"value": "\n\n\n"
}
],
"content": null
}
],
"content": null
}
]
}