swc/crates/swc_html_parser/tests/fixture/element/dialog/output.json
2022-06-14 13:31:23 +00:00

253 lines
6.1 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 184,
"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": 184,
"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",
"value": "en"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 34,
"end": 76,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 40,
"end": 45,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 45,
"end": 68,
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 52,
"end": 60,
"ctxt": 0
},
"data": "Document"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"data": "\n"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 76,
"end": 77,
"ctxt": 0
},
"data": "\n"
},
{
"type": "Element",
"span": {
"start": 77,
"end": 184,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 83,
"end": 85,
"ctxt": 0
},
"data": "\n\n"
},
{
"type": "Element",
"span": {
"start": 85,
"end": 143,
"ctxt": 0
},
"tagName": "dialog",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 93,
"end": 97,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "open",
"value": null
}
],
"children": [
{
"type": "Text",
"span": {
"start": 98,
"end": 103,
"ctxt": 0
},
"data": "\n "
},
{
"type": "Element",
"span": {
"start": 103,
"end": 133,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 106,
"end": 129,
"ctxt": 0
},
"data": "Greetings, one and all!"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 133,
"end": 134,
"ctxt": 0
},
"data": "\n"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 143,
"end": 145,
"ctxt": 0
},
"data": "\n\n"
},
{
"type": "Element",
"span": {
"start": 145,
"end": 166,
"ctxt": 0
},
"tagName": "dialog",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 153,
"end": 157,
"ctxt": 0
},
"data": "Test"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 166,
"end": 184,
"ctxt": 0
},
"data": "\n\n\n\n"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}