swc/crates/swc_html_parser/tests/fixture/element/iframe/output.json

184 lines
4.2 KiB
JSON
Raw Normal View History

2022-04-26 02:45:14 +03:00
{
"type": "Document",
"span": {
"start": 1,
"end": 149,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 1,
"end": 16,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
},
{
"type": "Element",
"span": {
"start": 17,
"end": 142,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"tagName": "html",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 23,
"end": 32,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "lang",
"value": "en"
}
],
"children": [
{
"type": "Element",
"span": {
"start": 34,
"end": 69,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"tagName": "head",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 40,
"end": 45,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"value": "\n "
},
{
"type": "Element",
"span": {
"start": 45,
"end": 60,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"tagName": "title",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 52,
"end": 60,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"value": "Document"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 68,
"end": 69,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"value": "\n"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 76,
"end": 77,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 77,
"end": 142,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 83,
"end": 84,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 84,
"end": 124,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"tagName": "iframe",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 92,
"end": 107,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "src",
"value": "test.html"
},
{
"type": "Attribute",
"span": {
"start": 108,
"end": 123,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "frameborder",
"value": "0"
}
],
"children": [],
"content": null
},
{
"type": "Text",
"span": {
"start": 133,
"end": 142,
2022-04-26 02:45:14 +03:00
"ctxt": 0
},
"value": "\n\n"
}
],
"content": null
}
],
"content": null
}
]
}