swc/crates/swc_html_parser/tests/recovery/element/select-1/output.json

157 lines
4.2 KiB
JSON

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