swc/crates/swc_xml_parser/tests/recovery/pi/bad-pi-2/output.json
2022-11-16 04:10:02 +00:00

75 lines
1.4 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 77,
"ctxt": 0
},
"children": [
{
"type": "ProcessingInstruction",
"span": {
"start": 1,
"end": 38,
"ctxt": 0
},
"target": "xml",
"data": "version='1.0'encoding='UTF-8'"
},
{
"type": "Element",
"span": {
"start": 39,
"end": 77,
"ctxt": 0
},
"tagName": "root",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 45,
"end": 50,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "Element",
"span": {
"start": 50,
"end": 69,
"ctxt": 0
},
"tagName": "foo",
"attributes": [],
"children": [
{
"type": "ProcessingInstruction",
"span": {
"start": 55,
"end": 63,
"ctxt": 0
},
"target": "",
"data": "foo"
}
]
},
{
"type": "Text",
"span": {
"start": 69,
"end": 70,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
}
]
}
]
}