swc/crates/swc_html_parser/tests/fixture/comment/multiline/output.json

155 lines
3.6 KiB
JSON
Raw Normal View History

2022-04-04 07:12:45 +03:00
{
"type": "Document",
"span": {
"start": 0,
"end": 200,
"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": 200,
"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": 200,
"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": 54,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 34,
"end": 54,
"ctxt": 0
},
"value": "This is a paragraph."
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 58,
"end": 59,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Comment",
"span": {
"start": 59,
"end": 150,
"ctxt": 0
},
"data": "\n<p>Look at this cool image:</p>\n<img border=\"0\" src=\"pic_trulli.jpg\" alt=\"Trulli\">\n"
},
{
"type": "Text",
"span": {
"start": 150,
"end": 151,
"ctxt": 0
},
"value": "\n"
},
{
"type": "Element",
"span": {
"start": 151,
"end": 178,
"ctxt": 0
},
"tagName": "p",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 154,
"end": 178,
"ctxt": 0
},
"value": "This is a paragraph too."
}
],
"content": null
},
{
"type": "Text",
"span": {
"start": 182,
"end": 200,
"ctxt": 0
},
"value": "\n\n\n\n"
}
],
"content": null
}
],
"content": null
2022-04-04 07:12:45 +03:00
}
]
}