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

393 lines
11 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"type": "Document",
"span": {
"start": 1,
"end": 1612,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 1,
"end": 16,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
},
{
"type": "Element",
"span": {
"start": 17,
"end": 1612,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 30,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 24,
"end": 1612,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 30,
"end": 32,
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 32,
"end": 55,
"ctxt": 0
},
"tagName": "h1",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 36,
"end": 55,
"ctxt": 0
},
"value": "HTML Entity Example"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 60,
"end": 62,
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 62,
"end": 71,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 67,
"end": 71,
"ctxt": 0
},
"value": "®"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 77,
"end": 78,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 78,
"end": 86,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 83,
"end": 86,
"ctxt": 0
},
"value": "reg"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 92,
"end": 94,
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 94,
"end": 103,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 99,
"end": 103,
"ctxt": 0
},
"value": "&#q;"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 109,
"end": 110,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 110,
"end": 120,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 115,
"end": 120,
"ctxt": 0
},
"value": "&#qq;"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 126,
"end": 127,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 127,
"end": 138,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 132,
"end": 138,
"ctxt": 0
},
"value": "&#qqq;"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 144,
"end": 146,
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 146,
"end": 156,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 151,
"end": 156,
"ctxt": 0
},
"value": "&#xq;"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 162,
"end": 163,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 163,
"end": 174,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 168,
"end": 174,
"ctxt": 0
},
"value": "&#xqq;"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 180,
"end": 181,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 181,
"end": 193,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 186,
"end": 193,
"ctxt": 0
},
"value": "&#xqqq;"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 199,
"end": 201,
"ctxt": 0
},
"value": "\n\n"
},
{
"type": "Element",
"span": {
"start": 201,
"end": 1552,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 206,
"end": 1552,
"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,
"ctxt": 0
},
"value": "\n\nFOOºR\nFOO䆺R\nFOOAZOO\n\n\n\n\n"
}
],
"content": null
}
],
"content": null
}
]
}