swc/crates/swc_html_parser/tests/recovery/element/td/output.json

458 lines
13 KiB
JSON
Raw Normal View History

2022-05-19 04:39:11 +03:00
{
"type": "Document",
"span": {
"start": 1,
"end": 471,
2022-05-19 04:39:11 +03:00
"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": 471,
2022-05-19 04:39:11 +03:00
"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": 302,
2022-05-19 04:39:11 +03:00
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 40,
"end": 45,
"ctxt": 0
},
"data": "\n "
2022-05-19 04:39:11 +03:00
},
{
"type": "Element",
"span": {
"start": 45,
"end": 67,
"ctxt": 0
},
"tagName": "meta",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 51,
"end": 66,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "charset",
"value": "UTF-8"
}
],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 67,
"end": 72,
"ctxt": 0
},
"data": "\n "
2022-05-19 04:39:11 +03:00
},
{
"type": "Element",
"span": {
"start": 72,
"end": 208,
"ctxt": 0
},
"tagName": "meta",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 78,
"end": 93,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "name",
"value": "viewport"
},
{
"type": "Attribute",
"span": {
"start": 104,
"end": 207,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "content",
"value": "width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
}
],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 208,
"end": 213,
"ctxt": 0
},
"data": "\n "
2022-05-19 04:39:11 +03:00
},
{
"type": "Element",
"span": {
"start": 213,
"end": 266,
"ctxt": 0
},
"tagName": "meta",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 219,
"end": 247,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "http-equiv",
"value": "X-UA-Compatible"
},
{
"type": "Attribute",
"span": {
"start": 248,
"end": 265,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "content",
"value": "ie=edge"
}
],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 266,
"end": 271,
"ctxt": 0
},
"data": "\n "
2022-05-19 04:39:11 +03:00
},
{
"type": "Element",
"span": {
"start": 271,
"end": 294,
2022-05-19 04:39:11 +03:00
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 278,
"end": 286,
"ctxt": 0
},
"data": "Document"
2022-05-19 04:39:11 +03:00
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 294,
"end": 295,
"ctxt": 0
},
"data": "\n"
2022-05-19 04:39:11 +03:00
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 302,
"end": 303,
"ctxt": 0
},
"data": "\n"
2022-05-19 04:39:11 +03:00
},
{
"type": "Element",
"span": {
"start": 303,
"end": 464,
2022-05-19 04:39:11 +03:00
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 309,
"end": 310,
"ctxt": 0
},
"data": "\n"
2022-05-19 04:39:11 +03:00
},
{
"type": "Element",
"span": {
"start": 369,
"end": 419,
"ctxt": 0
},
"tagName": "svg",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 374,
"end": 391,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 391,
"end": 400,
"ctxt": 0
},
"tagName": "td",
"namespace": "http://www.w3.org/2000/svg",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 400,
"end": 413,
"ctxt": 0
},
"data": "\n "
}
],
"content": null
},
2022-05-19 04:39:11 +03:00
{
"type": "Element",
"span": {
"start": 310,
"end": 455,
2022-05-19 04:39:11 +03:00
"ctxt": 0
},
"tagName": "table",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 317,
2022-06-04 12:33:25 +03:00
"end": 322,
2022-05-19 04:39:11 +03:00
"ctxt": 0
},
"data": "\n "
2022-05-19 04:39:11 +03:00
},
{
"type": "Element",
"span": {
"start": 0,
2022-06-07 17:33:06 +03:00
"end": 0,
2022-05-19 04:39:11 +03:00
"ctxt": 0
},
"tagName": "tbody",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 322,
"end": 352,
2022-05-19 04:39:11 +03:00
"ctxt": 0
},
"tagName": "tr",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 326,
2022-06-04 12:33:25 +03:00
"end": 335,
2022-05-19 04:39:11 +03:00
"ctxt": 0
},
"data": "\n "
2022-05-19 04:39:11 +03:00
},
{
"type": "Element",
"span": {
"start": 335,
"end": 352,
2022-05-19 04:39:11 +03:00
"ctxt": 0
},
"tagName": "td",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 339,
"end": 352,
"ctxt": 0
},
"data": "\n "
}
],
"content": null
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 352,
"end": 446,
"ctxt": 0
},
"tagName": "tr",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 356,
2022-06-04 12:33:25 +03:00
"end": 432,
"ctxt": 0
},
"data": "\n \n "
},
{
"type": "Element",
"span": {
"start": 432,
"end": 441,
"ctxt": 0
},
"tagName": "td",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
2022-05-19 04:39:11 +03:00
{
"type": "Text",
"span": {
"start": 436,
"end": 441,
2022-05-19 04:39:11 +03:00
"ctxt": 0
},
"data": "\n "
2022-05-19 04:39:11 +03:00
}
],
"content": null
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 446,
2022-06-04 12:33:25 +03:00
"end": 447,
2022-05-19 04:39:11 +03:00
"ctxt": 0
},
"data": "\n"
2022-05-19 04:39:11 +03:00
}
],
"content": null
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 455,
"end": 464,
2022-05-19 04:39:11 +03:00
"ctxt": 0
},
"data": "\n\n"
2022-05-19 04:39:11 +03:00
}
],
"content": null
}
],
"content": null
}
]
}