mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
569 lines
14 KiB
JSON
569 lines
14 KiB
JSON
{
|
|
"type": "Document",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 316,
|
|
"ctxt": 0
|
|
},
|
|
"mode": "no-quirks",
|
|
"children": [
|
|
{
|
|
"type": "DocumentType",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"name": "html",
|
|
"publicId": null,
|
|
"systemId": null,
|
|
"raw": "<!doctype html>"
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 316,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "html",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [
|
|
{
|
|
"type": "Attribute",
|
|
"span": {
|
|
"start": 23,
|
|
"end": 32,
|
|
"ctxt": 0
|
|
},
|
|
"namespace": null,
|
|
"prefix": null,
|
|
"name": "lang",
|
|
"rawName": "lang",
|
|
"value": "en",
|
|
"rawValue": "\"en\""
|
|
}
|
|
],
|
|
"children": [
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 34,
|
|
"end": 76,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "head",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 40,
|
|
"end": 45,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n ",
|
|
"raw": "\n "
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 45,
|
|
"end": 68,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "title",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 52,
|
|
"end": 60,
|
|
"ctxt": 0
|
|
},
|
|
"data": "Document",
|
|
"raw": "Document"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 68,
|
|
"end": 69,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n",
|
|
"raw": "\n"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 76,
|
|
"end": 77,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n",
|
|
"raw": "\n"
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 77,
|
|
"end": 309,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "body",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 83,
|
|
"end": 88,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n ",
|
|
"raw": "\n "
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 88,
|
|
"end": 96,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h1",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 92,
|
|
"end": 96,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 96,
|
|
"end": 109,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h1",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 100,
|
|
"end": 104,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 114,
|
|
"end": 119,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n ",
|
|
"raw": "\n "
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 119,
|
|
"end": 127,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h2",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 123,
|
|
"end": 127,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 127,
|
|
"end": 140,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h1",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 131,
|
|
"end": 135,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 145,
|
|
"end": 150,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n ",
|
|
"raw": "\n "
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 150,
|
|
"end": 158,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h3",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 154,
|
|
"end": 158,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 158,
|
|
"end": 171,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h1",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 162,
|
|
"end": 166,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 176,
|
|
"end": 181,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n ",
|
|
"raw": "\n "
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 181,
|
|
"end": 189,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h4",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 185,
|
|
"end": 189,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 189,
|
|
"end": 202,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h1",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 193,
|
|
"end": 197,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 207,
|
|
"end": 212,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n ",
|
|
"raw": "\n "
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 212,
|
|
"end": 220,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h5",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 216,
|
|
"end": 220,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 220,
|
|
"end": 233,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h1",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 224,
|
|
"end": 228,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 238,
|
|
"end": 243,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n ",
|
|
"raw": "\n "
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 243,
|
|
"end": 251,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h6",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 247,
|
|
"end": 251,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 251,
|
|
"end": 264,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h1",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 255,
|
|
"end": 259,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 269,
|
|
"end": 274,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n ",
|
|
"raw": "\n "
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 274,
|
|
"end": 282,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h1",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 278,
|
|
"end": 282,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 282,
|
|
"end": 295,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "h2",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 286,
|
|
"end": 290,
|
|
"ctxt": 0
|
|
},
|
|
"data": "test",
|
|
"raw": "test"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 300,
|
|
"end": 309,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n\n",
|
|
"raw": "\n\n"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
}
|
|
]
|
|
}
|