swc/crates/swc_html_parser/tests/recovery/text/ambiguous-ampersand/output.json
2022-05-15 04:20:21 +00:00

135 lines
3.5 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 163,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 163,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 6,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 163,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 1,
"end": 153,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 6,
"end": 80,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "href",
"value": "?a=b&c=d&a0b=c&copy=1&noti=n&not=in&notin=∉¬&;& &"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 76,
"end": 80,
"ctxt": 0
},
"value": "Link"
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 84,
"end": 153,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 87,
"end": 153,
"ctxt": 0
},
"value": "Text: ?a=b&c=d&a0b=c©=1¬i=n¬=in¬in=∉¬&;& &"
}
],
"content": null
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 162,
"end": 163,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
}
],
"content": null
}
]
}