mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
158 lines
3.7 KiB
JSON
158 lines
3.7 KiB
JSON
{
|
|
"type": "Document",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 184
|
|
},
|
|
"mode": "no-quirks",
|
|
"children": [
|
|
{
|
|
"type": "DocumentType",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 16
|
|
},
|
|
"name": "html",
|
|
"publicId": null,
|
|
"systemId": null,
|
|
"raw": "<!DOCTYPE html>"
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 184
|
|
},
|
|
"tagName": "html",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 0
|
|
},
|
|
"tagName": "head",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 24,
|
|
"end": 184
|
|
},
|
|
"tagName": "body",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 30,
|
|
"end": 32
|
|
},
|
|
"data": "\n\n",
|
|
"raw": "\n\n"
|
|
},
|
|
{
|
|
"type": "Comment",
|
|
"span": {
|
|
"start": 32,
|
|
"end": 56
|
|
},
|
|
"data": "This is a comment",
|
|
"raw": "<!--This is a comment-->"
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 56,
|
|
"end": 57
|
|
},
|
|
"data": "\n",
|
|
"raw": "\n"
|
|
},
|
|
{
|
|
"type": "Comment",
|
|
"span": {
|
|
"start": 57,
|
|
"end": 83
|
|
},
|
|
"data": " This is a comment ",
|
|
"raw": "<!-- This is a comment -->"
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 83,
|
|
"end": 84
|
|
},
|
|
"data": "\n",
|
|
"raw": "\n"
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 84,
|
|
"end": 111
|
|
},
|
|
"tagName": "p",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 87,
|
|
"end": 107
|
|
},
|
|
"data": "This is a paragraph.",
|
|
"raw": "This is a paragraph."
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 111,
|
|
"end": 112
|
|
},
|
|
"data": "\n",
|
|
"raw": "\n"
|
|
},
|
|
{
|
|
"type": "Comment",
|
|
"span": {
|
|
"start": 112,
|
|
"end": 162
|
|
},
|
|
"data": " Comments are not displayed in the browser ",
|
|
"raw": "<!-- Comments are not displayed in the browser -->"
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 162,
|
|
"end": 184
|
|
},
|
|
"data": "\n\n\n \n\n\n",
|
|
"raw": "\n\n\n \n\n\n"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
}
|
|
]
|
|
}
|