swc/crates/swc_xml_parser/tests/recovery/attribute-character-reference/output.json
2022-12-03 03:52:48 +00:00

69 lines
1.3 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 39,
"ctxt": 0
},
"children": [
{
"type": "Element",
"span": {
"start": 1,
"end": 39,
"ctxt": 0
},
"tagName": "root",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 7,
"end": 12,
"ctxt": 0
},
"data": "\n ",
"raw": "\n "
},
{
"type": "Element",
"span": {
"start": 12,
"end": 31,
"ctxt": 0
},
"tagName": "foo",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "bar",
"rawName": "bar",
"value": "&",
"rawValue": "\"&\""
}
],
"children": []
},
{
"type": "Text",
"span": {
"start": 31,
"end": 32,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
}
]
}
]
}