swc/crates/swc_html_parser/tests/html5lib-tests-fixture/template_dat.108.fragment_template.output.json

103 lines
2.5 KiB
JSON

{
"type": "DocumentFragment",
"span": {
"start": 1,
"end": 68,
"ctxt": 0
},
"children": [
{
"type": "Element",
"span": {
"start": 1,
"end": 68,
"ctxt": 0
},
"tagName": "template",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": {
"type": "DocumentFragment",
"span": {
"start": 1,
"end": 68,
"ctxt": 0
},
"children": [
{
"type": "Element",
"span": {
"start": 11,
"end": 40,
"ctxt": 0
},
"tagName": "form",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 17,
"end": 33,
"ctxt": 0
},
"tagName": "input",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 24,
"end": 32,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "name",
"rawName": "name",
"value": "q",
"rawValue": "\"q\""
}
],
"children": [],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Element",
"span": {
"start": 40,
"end": 57,
"ctxt": 0
},
"tagName": "div",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 45,
"end": 51,
"ctxt": 0
},
"data": "second",
"raw": "second"
}
],
"content": null,
"isSelfClosing": false
}
]
},
"isSelfClosing": false
}
]
}