swc/crates/swc_html_parser/tests/recovery/comment/question-mark/output.json

304 lines
7.6 KiB
JSON
Raw Normal View History

{
"type": "Document",
"span": {
"start": 1,
"end": 250,
"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": 250,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 23,
"end": 32,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "lang",
"value": "en"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 34,
"end": 178,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 40,
"end": 45,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 45,
"end": 67,
"ctxt": 0
},
"tagName": "meta",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 51,
"end": 66,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "charset",
"value": "UTF-8"
}
],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 67,
"end": 72,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 72,
"end": 142,
"ctxt": 0
},
"tagName": "meta",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 78,
"end": 93,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "name",
"value": "viewport"
},
{
"type": "Attribute",
"span": {
"start": 94,
"end": 141,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "content",
"value": "width=device-width, initial-scale=1.0"
}
],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 142,
"end": 147,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 147,
"end": 170,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 154,
"end": 162,
"ctxt": 0
},
"value": "Document"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 170,
"end": 171,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 178,
"end": 179,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 179,
"end": 243,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 185,
"end": 186,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 186,
"end": 234,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 191,
"end": 196,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Comment",
"span": {
"start": 196,
"end": 203,
"ctxt": 0
},
"data": "?test"
},
{
"type": "Text",
"span": {
"start": 203,
"end": 208,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 208,
"end": 227,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 213,
"end": 220,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "=\"test\"",
"value": null
}
],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 227,
"end": 228,
"ctxt": 0
},
"value": "\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 234,
"end": 243,
"ctxt": 0
},
"value": "\n\n"
}
],
"content": null
}
],
"content": null
}
]
}