swc/crates/swc_html_parser/tests/fixture/element/colgroup/output.json

588 lines
19 KiB
JSON
Raw Normal View History

{
"type": "Document",
"span": {
"start": 1,
"end": 440,
"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": 440,
"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": 76,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 40,
"end": 45,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 45,
"end": 68,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 52,
"end": 60,
"ctxt": 0
},
"data": "Document"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"data": "\n"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 76,
"end": 77,
"ctxt": 0
},
"data": "\n"
},
{
"type": "Element",
"span": {
"start": 77,
"end": 433,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"data": "\n"
},
{
"type": "Element",
"span": {
"start": 84,
"end": 424,
"ctxt": 0
},
"tagName": "table",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 91,
2022-06-04 12:33:25 +03:00
"end": 96,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 96,
"end": 139,
"ctxt": 0
},
"tagName": "caption",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 105,
"end": 129,
"ctxt": 0
},
"data": "Superheros and sidekicks"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 139,
2022-06-04 12:33:25 +03:00
"end": 144,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 144,
"end": 227,
"ctxt": 0
},
"tagName": "colgroup",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 154,
"end": 159,
"ctxt": 0
},
"tagName": "col",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 159,
"end": 188,
"ctxt": 0
},
"tagName": "col",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 164,
"end": 172,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "span",
"value": "2"
},
{
"type": "Attribute",
"span": {
"start": 173,
"end": 187,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "class",
"value": "batman"
}
],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 188,
"end": 216,
"ctxt": 0
},
"tagName": "col",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 193,
"end": 201,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "span",
"value": "2"
},
{
"type": "Attribute",
"span": {
"start": 202,
"end": 215,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "class",
"value": "flash"
}
],
"children": [],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 227,
2022-06-04 12:33:25 +03:00
"end": 232,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 0,
2022-06-07 17:33:06 +03:00
"end": 0,
"ctxt": 0
},
"tagName": "tbody",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 232,
"end": 415,
"ctxt": 0
},
"tagName": "tr",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 236,
2022-06-04 12:33:25 +03:00
"end": 245,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 245,
"end": 256,
"ctxt": 0
},
"tagName": "td",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 249,
"end": 251,
"ctxt": 0
},
"data": " "
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 256,
2022-06-04 12:33:25 +03:00
"end": 265,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 265,
"end": 292,
"ctxt": 0
},
"tagName": "th",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 269,
"end": 280,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "scope",
"value": "col"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 281,
"end": 287,
"ctxt": 0
},
"data": "Batman"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 292,
2022-06-04 12:33:25 +03:00
"end": 301,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 301,
"end": 327,
"ctxt": 0
},
"tagName": "th",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 305,
"end": 316,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "scope",
"value": "col"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 317,
"end": 322,
"ctxt": 0
},
"data": "Robin"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 327,
2022-06-04 12:33:25 +03:00
"end": 336,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 336,
"end": 366,
"ctxt": 0
},
"tagName": "th",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 340,
"end": 351,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "scope",
"value": "col"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 352,
"end": 361,
"ctxt": 0
},
"data": "The Flash"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 366,
2022-06-04 12:33:25 +03:00
"end": 375,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 375,
"end": 405,
"ctxt": 0
},
"tagName": "th",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 379,
"end": 390,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "scope",
"value": "col"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 391,
"end": 400,
"ctxt": 0
},
"data": "Kid Flash"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 405,
2022-06-04 12:33:25 +03:00
"end": 410,
"ctxt": 0
},
"data": "\n "
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 415,
2022-06-04 12:33:25 +03:00
"end": 416,
"ctxt": 0
},
"data": "\n"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 424,
"end": 433,
"ctxt": 0
},
"data": "\n\n"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}