swc/crates/swc_html_parser/tests/recovery/text/ambiguous-ampersand/output.json
2022-07-09 04:19:14 +00:00

144 lines
3.9 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 163,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 1,
"end": 162,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 6,
"end": 84,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 9,
"end": 75,
"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
},
"data": "Link",
"raw": "Link"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 84,
"end": 156,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 87,
"end": 152,
"ctxt": 0
},
"data": "Text: ?a=b&c=d&a0b=c©=1¬i=n¬=in¬in=∉¬&;& &",
"raw": "Text: ?a=b&c=d&a0b=c&copy=1&noti=n&not=in&notin=∉¬&;& &"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 162,
"end": 163,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}