swc/crates/swc_html_parser/tests/recovery/text/unassigned-charref-novalid/output.json

137 lines
3.2 KiB
JSON
Raw Normal View History

2022-04-07 08:12:54 +03:00
{
"type": "Document",
"span": {
"start": 0,
2022-04-28 20:27:39 +03:00
"end": 98,
2022-04-07 08:12:54 +03:00
"ctxt": 0
},
"mode": "no-quirks",
2022-04-07 08:12:54 +03:00
"children": [
{
"type": "DocumentType",
2022-04-07 08:12:54 +03:00
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
2022-04-07 08:12:54 +03:00
},
{
"type": "Element",
2022-04-07 08:12:54 +03:00
"span": {
"start": 0,
2022-04-28 20:27:39 +03:00
"end": 98,
2022-04-07 08:12:54 +03:00
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 54,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 15,
"end": 35,
"ctxt": 0
},
"tagName": "meta",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "charset",
"value": "utf-8"
}
],
"children": [],
"content": null
},
2022-04-07 08:12:54 +03:00
{
"type": "Element",
"span": {
"start": 35,
"end": 54,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 42,
"end": 54,
"ctxt": 0
},
"value": ""
}
],
"content": null
2022-04-07 08:12:54 +03:00
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
2022-04-28 20:27:39 +03:00
"end": 98,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 62,
2022-04-28 20:27:39 +03:00
"end": 98,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 65,
2022-04-28 20:27:39 +03:00
"end": 98,
"ctxt": 0
},
2022-04-28 20:27:39 +03:00
"value": "There should be an error.﷐"
}
],
"content": null
}
],
"content": null
2022-04-07 08:12:54 +03:00
}
],
"content": null
2022-04-07 08:12:54 +03:00
}
]
}