swc/crates/swc_html_parser/tests/recovery/element/select-1/output.json
2022-06-14 13:31:23 +00:00

163 lines
4.4 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 133,
"ctxt": 0
},
"mode": "quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 1,
"end": 133,
"ctxt": 0
},
"tagName": "select",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 9,
"end": 14,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 14,
"end": 54,
"ctxt": 0
},
"tagName": "option",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 22,
"end": 34,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "value",
"value": "test"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 35,
"end": 54,
"ctxt": 0
},
"data": "\n 1\n "
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 54,
"end": 109,
"ctxt": 0
},
"tagName": "option",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 62,
"end": 76,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "value",
"value": "test-2"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 77,
"end": 100,
"ctxt": 0
},
"data": "\n 2\n "
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 109,
"end": 124,
"ctxt": 0
},
"data": "\n \n"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}