swc/crates/swc_html_parser/tests/recovery/text/entity/output.json

393 lines
11 KiB
JSON
Raw Normal View History

2022-04-28 20:27:39 +03:00
{
"type": "Document",
"span": {
"start": 1,
"end": 1612,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 1,
"end": 16,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
},
{
"type": "Element",
"span": {
"start": 17,
"end": 1612,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 30,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 24,
"end": 1612,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 30,
"end": 32,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 32,
"end": 55,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "h1",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 36,
"end": 55,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "HTML Entity Example"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 60,
"end": 62,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 62,
"end": 71,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 67,
"end": 71,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "®"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 77,
"end": 78,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 78,
"end": 86,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 83,
"end": 86,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "reg"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 92,
"end": 94,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 94,
"end": 103,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 99,
"end": 103,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "&#q;"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 109,
"end": 110,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 110,
"end": 120,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 115,
"end": 120,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "&#qq;"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 126,
"end": 127,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 127,
"end": 138,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 132,
"end": 138,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "&#qqq;"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 144,
"end": 146,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 146,
"end": 156,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 151,
"end": 156,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "&#xq;"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 162,
"end": 163,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 163,
"end": 174,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 168,
"end": 174,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "&#xqq;"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 180,
"end": 181,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 181,
"end": 193,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 186,
"end": 193,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "&#xqqq;"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 199,
"end": 201,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 201,
"end": 1552,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 206,
"end": 1552,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "\n € 0x20AC EURO SIGN (€)\n 0x201A SINGLE LOW-9 QUOTATION MARK ()\n ƒ 0x0192 LATIN SMALL LETTER F WITH HOOK (ƒ)\n „ 0x201E DOUBLE LOW-9 QUOTATION MARK („)\n … 0x2026 HORIZONTAL ELLIPSIS (…)\n † 0x2020 DAGGER (†)\n ‡ 0x2021 DOUBLE DAGGER (‡)\n ˆ 0x02C6 MODIFIER LETTER CIRCUMFLEX ACCENT (ˆ)\n ‰ 0x2030 PER MILLE SIGN (‰)\n Š 0x0160 LATIN CAPITAL LETTER S WITH CARON (Š)\n 0x2039 SINGLE LEFT-POINTING ANGLE QUOTATION MARK ()\n Œ 0x0152 LATIN CAPITAL LIGATURE OE (Œ)\n Ž 0x017D LATIN CAPITAL LETTER Z WITH CARON (Ž)\n 0x2018 LEFT SINGLE QUOTATION MARK ()\n 0x2019 RIGHT SINGLE QUOTATION MARK ()\n “ 0x201C LEFT DOUBLE QUOTATION MARK (“)\n ” 0x201D RIGHT DOUBLE QUOTATION MARK (”)\n • 0x2022 BULLET (•)\n 0x2013 EN DASH ()\n — 0x2014 EM DASH (—)\n ˜ 0x02DC SMALL TILDE (˜)\n ™ 0x2122 TRADE MARK SIGN (™)\n š 0x0161 LATIN SMALL LETTER S WITH CARON (š)\n 0x203A SINGLE RIGHT-POINTING ANGLE QUOTATION MARK ()\n œ 0x0153 LATIN SMALL LIGATURE OE (œ)\n ž 0x017E LATIN SMALL LETTER Z WITH CARON (ž)\n Ÿ 0x0178 LATIN CAPITAL LETTER Y WITH DIAERESIS (Ÿ)\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 1558,
"end": 1612,
2022-04-28 20:27:39 +03:00
"ctxt": 0
},
"value": "\n\nFOOºR\nFOO䆺R\nFOOAZOO\n\n\n\n\n"
2022-04-28 20:27:39 +03:00
}
],
"content": null
}
],
"content": null
}
]
}