mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
346 lines
9.1 KiB
JSON
346 lines
9.1 KiB
JSON
{
|
|
"type": "Document",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 375,
|
|
"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": 375,
|
|
"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": 368,
|
|
"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": 170,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "embed",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [
|
|
{
|
|
"type": "Attribute",
|
|
"span": {
|
|
"start": 95,
|
|
"end": 111,
|
|
"ctxt": 0
|
|
},
|
|
"namespace": null,
|
|
"prefix": null,
|
|
"name": "type",
|
|
"rawName": "type",
|
|
"value": "vide/webm",
|
|
"rawValue": "\"vide/webm\""
|
|
},
|
|
{
|
|
"type": "Attribute",
|
|
"span": {
|
|
"start": 112,
|
|
"end": 144,
|
|
"ctxt": 0
|
|
},
|
|
"namespace": null,
|
|
"prefix": null,
|
|
"name": "src",
|
|
"rawName": "src",
|
|
"value": "/media/examples/flower.mp4",
|
|
"rawValue": "\"/media/examples/flower.mp4\""
|
|
},
|
|
{
|
|
"type": "Attribute",
|
|
"span": {
|
|
"start": 145,
|
|
"end": 156,
|
|
"ctxt": 0
|
|
},
|
|
"namespace": null,
|
|
"prefix": null,
|
|
"name": "width",
|
|
"rawName": "width",
|
|
"value": "200",
|
|
"rawValue": "\"200\""
|
|
},
|
|
{
|
|
"type": "Attribute",
|
|
"span": {
|
|
"start": 157,
|
|
"end": 169,
|
|
"ctxt": 0
|
|
},
|
|
"namespace": null,
|
|
"prefix": null,
|
|
"name": "height",
|
|
"rawName": "height",
|
|
"value": "200",
|
|
"rawValue": "\"200\""
|
|
}
|
|
],
|
|
"children": [],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 170,
|
|
"end": 175,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n ",
|
|
"raw": "\n "
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 175,
|
|
"end": 236,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "noembed",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [],
|
|
"children": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 184,
|
|
"end": 226,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n <h1>Alternative content</h1>\n ",
|
|
"raw": "\n <h1>Alternative content</h1>\n "
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 236,
|
|
"end": 241,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n ",
|
|
"raw": "\n "
|
|
},
|
|
{
|
|
"type": "Element",
|
|
"span": {
|
|
"start": 241,
|
|
"end": 359,
|
|
"ctxt": 0
|
|
},
|
|
"tagName": "embed",
|
|
"namespace": "http://www.w3.org/1999/xhtml",
|
|
"attributes": [
|
|
{
|
|
"type": "Attribute",
|
|
"span": {
|
|
"start": 248,
|
|
"end": 265,
|
|
"ctxt": 0
|
|
},
|
|
"namespace": null,
|
|
"prefix": null,
|
|
"name": "type",
|
|
"rawName": "type",
|
|
"value": "video/webm",
|
|
"rawValue": "\"video/webm\""
|
|
},
|
|
{
|
|
"type": "Attribute",
|
|
"span": {
|
|
"start": 277,
|
|
"end": 311,
|
|
"ctxt": 0
|
|
},
|
|
"namespace": null,
|
|
"prefix": null,
|
|
"name": "src",
|
|
"rawName": "src",
|
|
"value": "/media/cc0-videos/flower.mp4",
|
|
"rawValue": "\"/media/cc0-videos/flower.mp4\""
|
|
},
|
|
{
|
|
"type": "Attribute",
|
|
"span": {
|
|
"start": 323,
|
|
"end": 334,
|
|
"ctxt": 0
|
|
},
|
|
"namespace": null,
|
|
"prefix": null,
|
|
"name": "width",
|
|
"rawName": "width",
|
|
"value": "250",
|
|
"rawValue": "\"250\""
|
|
},
|
|
{
|
|
"type": "Attribute",
|
|
"span": {
|
|
"start": 346,
|
|
"end": 358,
|
|
"ctxt": 0
|
|
},
|
|
"namespace": null,
|
|
"prefix": null,
|
|
"name": "height",
|
|
"rawName": "height",
|
|
"value": "200",
|
|
"rawValue": "\"200\""
|
|
}
|
|
],
|
|
"children": [],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
},
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 359,
|
|
"end": 368,
|
|
"ctxt": 0
|
|
},
|
|
"data": "\n\n",
|
|
"raw": "\n\n"
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
}
|
|
],
|
|
"content": null,
|
|
"isSelfClosing": false
|
|
}
|
|
]
|
|
}
|