swc/crates/swc_html_parser/tests/recovery/comment/question-mark/output.json
2022-07-15 02:40:47 +00:00

334 lines
8.6 KiB
JSON

{
"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",
"rawName": "lang",
"value": "en",
"rawValue": "\"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
},
"data": "\n ",
"raw": "\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",
"rawName": "charset",
"value": "UTF-8",
"rawValue": "\"UTF-8\""
}
],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 67,
"end": 72,
"ctxt": 0
},
"data": "\n ",
"raw": "\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",
"rawName": "name",
"value": "viewport",
"rawValue": "\"viewport\""
},
{
"type": "Attribute",
"span": {
"start": 94,
"end": 141,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "content",
"rawName": "content",
"value": "width=device-width, initial-scale=1.0",
"rawValue": "\"width=device-width, initial-scale=1.0\""
}
],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 142,
"end": 147,
"ctxt": 0
},
"data": "\n ",
"raw": "\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
},
"data": "Document",
"raw": "Document"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 170,
"end": 171,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 178,
"end": 179,
"ctxt": 0
},
"data": "\n",
"raw": "\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
},
"data": "\n",
"raw": "\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
},
"data": "\n ",
"raw": "\n "
},
{
"type": "Comment",
"span": {
"start": 196,
"end": 203,
"ctxt": 0
},
"data": "?test",
"raw": "<?test>"
},
{
"type": "Text",
"span": {
"start": 203,
"end": 208,
"ctxt": 0
},
"data": "\n ",
"raw": "\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\"",
"rawName": "=\"test\"",
"value": null,
"rawValue": null
}
],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 227,
"end": 228,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 234,
"end": 243,
"ctxt": 0
},
"data": "\n\n",
"raw": "\n\n"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}