swc/crates/swc_html_parser/tests/html5lib-tests-fixture/tests1_dat.77.output.json

275 lines
8.1 KiB
JSON
Raw Normal View History

{
"type": "Document",
"span": {
"start": 1,
"end": 72,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
2022-06-07 17:33:06 +03:00
"end": 0,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
2022-06-07 17:33:06 +03:00
"end": 0,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 0,
2022-06-07 17:33:06 +03:00
"end": 0,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 1,
"end": 69,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 4,
"end": 15,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "href",
"rawName": "href",
"value": "blah",
"rawValue": "\"blah\""
}
],
"children": [
{
"type": "Text",
"span": {
"start": 16,
"end": 19,
"ctxt": 0
},
2022-07-09 07:19:14 +03:00
"data": "aba",
"raw": "aba"
},
{
"type": "Element",
"span": {
"start": 26,
"end": 42,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 29,
"end": 39,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "href",
"rawName": "href",
"value": "foo",
"rawValue": "\"foo\""
}
],
"children": [
{
"type": "Text",
"span": {
"start": 40,
"end": 42,
"ctxt": 0
},
2022-07-09 07:19:14 +03:00
"data": "br",
"raw": "br"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 26,
2022-06-04 12:33:25 +03:00
"end": 61,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 29,
"end": 39,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "href",
"rawName": "href",
"value": "foo",
"rawValue": "\"foo\""
}
],
"children": [
{
"type": "Text",
"span": {
"start": 60,
2022-06-04 12:33:25 +03:00
"end": 61,
"ctxt": 0
},
2022-07-09 07:19:14 +03:00
"data": "x",
"raw": "x"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 19,
"end": 69,
"ctxt": 0
},
"tagName": "table",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"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": 42,
"end": 60,
"ctxt": 0
},
"tagName": "tr",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 46,
"end": 55,
"ctxt": 0
},
"tagName": "td",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 26,
"end": 72,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 29,
"end": 39,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "href",
"rawName": "href",
"value": "foo",
"rawValue": "\"foo\""
}
],
"children": [
{
"type": "Text",
"span": {
"start": 69,
"end": 72,
"ctxt": 0
},
2022-07-09 07:19:14 +03:00
"data": "aoe",
"raw": "aoe"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}