swc/crates/swc_html_parser/tests/fixture/attribute/no-quotes/output.json
2022-06-14 13:31:23 +00:00

122 lines
2.8 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 102,
"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": 102,
"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": 24,
"end": 102,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 30,
"end": 32,
"ctxt": 0
},
"data": "\n\n"
},
{
"type": "Element",
"span": {
"start": 32,
"end": 84,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 35,
"end": 65,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "href",
"value": "https://www.w3schools.com"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 66,
"end": 80,
"ctxt": 0
},
"data": "This is a link"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 84,
"end": 102,
"ctxt": 0
},
"data": "\n\n\n\n"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}