swc/crates/swc_html_parser/tests/recovery/text/cr-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": 1,
"end": 95,
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": 1,
"end": 16,
2022-04-07 08:12:54 +03:00
"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,
"end": 95,
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": 61,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 16,
"end": 36,
"ctxt": 0
},
"tagName": "meta",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 22,
"end": 35,
"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": 36,
"end": 61,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 43,
"end": 53,
"ctxt": 0
},
"value": "
"
}
],
"content": null
2022-04-07 08:12:54 +03:00
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 95,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 61,
"end": 95,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 64,
"end": 95,
"ctxt": 0
},
2022-04-28 20:27:39 +03:00
"value": "There should be an error.\r"
}
],
"content": null
}
],
"content": null
2022-04-07 08:12:54 +03:00
}
],
"content": null
2022-04-07 08:12:54 +03:00
}
]
}