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

157 lines
4.2 KiB
JSON
Raw Normal View History

{
"type": "Document",
"span": {
"start": 0,
"end": 132,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 123,
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 8,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 0,
"end": 123,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 123,
"ctxt": 0
},
"tagName": "select",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 8,
"end": 13,
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 13,
"end": 53,
"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": 34,
"end": 53,
"ctxt": 0
},
"value": "\n 1\n "
}
],
"content": null
},
{
"type": "Element",
"span": {
"start": 53,
"end": 99,
"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": 76,
"end": 99,
"ctxt": 0
},
"value": "\n 2\n "
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 108,
"end": 123,
"ctxt": 0
},
"value": "\n \n"
}
],
"content": null
}
],
"content": null
}
],
"content": null
}
]
}