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

265 lines
6.4 KiB
JSON
Raw Normal View History

{
"type": "Document",
"span": {
"start": 0,
"end": 210,
"ctxt": 0
},
"mode": "no-quirks",
"children": [
{
"type": "DocumentType",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"name": "html",
"publicId": null,
"systemId": null
},
{
"type": "Element",
"span": {
"start": 16,
"end": 210,
"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": 210,
"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"
},
{
"type": "Element",
"span": {
"start": 31,
"end": 52,
"ctxt": 0
},
"tagName": "h1",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 35,
"end": 52,
"ctxt": 0
},
"value": "This is heading 1"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 58,
"end": 79,
"ctxt": 0
},
"tagName": "h2",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 62,
"end": 79,
"ctxt": 0
},
"value": "This is heading 2"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 84,
"end": 85,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 85,
"end": 106,
"ctxt": 0
},
"tagName": "h3",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 89,
"end": 106,
"ctxt": 0
},
"value": "This is heading 3"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 111,
"end": 112,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 112,
"end": 133,
"ctxt": 0
},
"tagName": "h4",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 116,
"end": 133,
"ctxt": 0
},
"value": "This is heading 4"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 138,
"end": 139,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 139,
"end": 160,
"ctxt": 0
},
"tagName": "h5",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 143,
"end": 160,
"ctxt": 0
},
"value": "This is heading 5"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 165,
"end": 166,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 166,
"end": 187,
"ctxt": 0
},
"tagName": "h6",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 170,
"end": 187,
"ctxt": 0
},
"value": "This is heading 6"
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 192,
"end": 210,
"ctxt": 0
},
"value": "\n\n\n\n"
}
],
"content": null
}
],
"content": null
}
]
}