swc/crates/swc_html_parser/tests/fixture/range-charref-novalid/html/output.json
2022-04-07 14:12:54 +09:00

560 lines
8.8 KiB
JSON
Raw Blame History

{
"type": "Document",
"span": {
"start": 0,
"end": 102,
"ctxt": 0
},
"children": [
{
"type": "TokenAndSpan",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"token": {
"Doctype": {
"name": "html",
"force_quirks": false,
"public_id": null,
"system_id": null
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 15,
"end": 35,
"ctxt": 0
},
"token": {
"StartTag": {
"tag_name": "meta",
"self_closing": false,
"attributes": [
{
"name": "charset",
"value": "utf-8"
}
]
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 35,
"end": 42,
"ctxt": 0
},
"token": {
"StartTag": {
"tag_name": "title",
"self_closing": false,
"attributes": []
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 42,
"end": 47,
"ctxt": 0
},
"token": {
"Character": {
"value": "&"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 47,
"end": 48,
"ctxt": 0
},
"token": {
"Character": {
"value": "#"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 48,
"end": 49,
"ctxt": 0
},
"token": {
"Character": {
"value": "x"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 49,
"end": 50,
"ctxt": 0
},
"token": {
"Character": {
"value": "1"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 50,
"end": 51,
"ctxt": 0
},
"token": {
"Character": {
"value": "1"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"token": {
"Character": {
"value": "0"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 52,
"end": 53,
"ctxt": 0
},
"token": {
"Character": {
"value": "0"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 53,
"end": 54,
"ctxt": 0
},
"token": {
"Character": {
"value": "0"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 54,
"end": 55,
"ctxt": 0
},
"token": {
"Character": {
"value": "0"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 55,
"end": 56,
"ctxt": 0
},
"token": {
"Character": {
"value": ";"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 56,
"end": 64,
"ctxt": 0
},
"token": {
"EndTag": {
"tag_name": "title",
"self_closing": false,
"attributes": []
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 64,
"end": 67,
"ctxt": 0
},
"token": {
"StartTag": {
"tag_name": "p",
"self_closing": false,
"attributes": []
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 67,
"end": 68,
"ctxt": 0
},
"token": {
"Character": {
"value": "T"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"token": {
"Character": {
"value": "h"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 69,
"end": 70,
"ctxt": 0
},
"token": {
"Character": {
"value": "e"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 70,
"end": 71,
"ctxt": 0
},
"token": {
"Character": {
"value": "r"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 71,
"end": 72,
"ctxt": 0
},
"token": {
"Character": {
"value": "e"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 72,
"end": 73,
"ctxt": 0
},
"token": {
"Character": {
"value": " "
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 73,
"end": 74,
"ctxt": 0
},
"token": {
"Character": {
"value": "s"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 74,
"end": 75,
"ctxt": 0
},
"token": {
"Character": {
"value": "h"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 75,
"end": 76,
"ctxt": 0
},
"token": {
"Character": {
"value": "o"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 76,
"end": 77,
"ctxt": 0
},
"token": {
"Character": {
"value": "u"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 77,
"end": 78,
"ctxt": 0
},
"token": {
"Character": {
"value": "l"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 78,
"end": 79,
"ctxt": 0
},
"token": {
"Character": {
"value": "d"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 79,
"end": 80,
"ctxt": 0
},
"token": {
"Character": {
"value": " "
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"token": {
"Character": {
"value": "b"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 81,
"end": 82,
"ctxt": 0
},
"token": {
"Character": {
"value": "e"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 82,
"end": 83,
"ctxt": 0
},
"token": {
"Character": {
"value": " "
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"token": {
"Character": {
"value": "a"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 84,
"end": 85,
"ctxt": 0
},
"token": {
"Character": {
"value": "n"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 85,
"end": 86,
"ctxt": 0
},
"token": {
"Character": {
"value": " "
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 86,
"end": 87,
"ctxt": 0
},
"token": {
"Character": {
"value": "e"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 87,
"end": 88,
"ctxt": 0
},
"token": {
"Character": {
"value": "r"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 88,
"end": 89,
"ctxt": 0
},
"token": {
"Character": {
"value": "r"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 89,
"end": 90,
"ctxt": 0
},
"token": {
"Character": {
"value": "o"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 90,
"end": 91,
"ctxt": 0
},
"token": {
"Character": {
"value": "r"
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 91,
"end": 92,
"ctxt": 0
},
"token": {
"Character": {
"value": "."
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 92,
"end": 102,
"ctxt": 0
},
"token": {
"Character": {
"value": "<22>"
}
}
}
]
}