swc/crates/swc_html_parser/tests/fixture/attribute/no-quotes/output.json

118 lines
2.6 KiB
JSON
Raw Normal View History

2022-04-04 07:12:45 +03:00
{
"type": "Document",
"span": {
"start": 0,
"end": 101,
"ctxt": 0
},
"mode": "no-quirks",
2022-04-04 07:12:45 +03:00
"children": [
{
"type": "DocumentType",
2022-04-04 07:12:45 +03:00
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
2022-04-04 07:12:45 +03:00
},
{
"type": "Element",
2022-04-04 07:12:45 +03:00
"span": {
"start": 16,
"end": 101,
2022-04-04 07:12:45 +03:00
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Element",
"span": {
"start": 0,
"end": 29,
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [],
"content": null
},
{
"type": "Element",
"span": {
"start": 23,
"end": 101,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 29,
"end": 31,
"ctxt": 0
},
"value": "\n\n"
},
2022-04-04 07:12:45 +03:00
{
"type": "Element",
"span": {
"start": 31,
"end": 79,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "href",
"value": "https://www.w3schools.com"
}
],
"children": [
{
"type": "Text",
"span": {
"start": 65,
"end": 79,
"ctxt": 0
},
"value": "This is a link"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 83,
"end": 101,
"ctxt": 0
},
"value": "\n\n\n\n"
2022-04-04 07:12:45 +03:00
}
],
"content": null
2022-04-04 07:12:45 +03:00
}
],
"content": null
2022-04-04 07:12:45 +03:00
}
]
}