swc/crates/swc_html_parser/tests/recovery/element/html-2/output.json

144 lines
3.3 KiB
JSON
Raw Normal View History

{
"type": "Document",
"span": {
"start": 1,
"end": 107,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 1,
"end": 16,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null,
"raw": "<!doctype html>"
},
{
"type": "Element",
"span": {
"start": 16,
"end": 107,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 22,
"end": 31,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "lang",
"rawName": "lang",
"value": "en",
"rawValue": "\"en\""
}
],
"children": [
{
"type": "Element",
"span": {
"start": 32,
"end": 68,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 38,
"end": 61,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 45,
"end": 53,
"ctxt": 0
},
2022-07-09 07:19:14 +03:00
"data": "Document",
"raw": "Document"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 68,
"end": 100,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 74,
"end": 78,
"ctxt": 0
},
2022-07-09 07:19:14 +03:00
"data": "test",
"raw": "test"
},
{
"type": "Element",
"span": {
"start": 85,
"end": 100,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 90,
"end": 94,
"ctxt": 0
},
2022-07-09 07:19:14 +03:00
"data": "test",
"raw": "test"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}