swc/crates/swc_html_parser/tests/fixture/element/noscript/output.json
2022-07-17 12:48:21 +00:00

304 lines
7.8 KiB
JSON

{
"type": "Document",
"span": {
"start": 1,
"end": 269,
"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": 269,
"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": 262,
"ctxt": 0
},
"tagName": "body",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
},
{
"type": "Element",
"span": {
"start": 84,
"end": 200,
"ctxt": 0
},
"tagName": "noscript",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [],
"children": [
{
"type": "Text",
"span": {
"start": 94,
"end": 95,
"ctxt": 0
},
"data": " ",
"raw": " "
},
{
"type": "Comment",
"span": {
"start": 95,
"end": 135,
"ctxt": 0
},
"data": " anchor linking to external file ",
"raw": "<!-- anchor linking to external file -->"
},
{
"type": "Text",
"span": {
"start": 135,
"end": 136,
"ctxt": 0
},
"data": " ",
"raw": " "
},
{
"type": "Element",
"span": {
"start": 136,
"end": 188,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 139,
"end": 170,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "href",
"rawName": "href",
"value": "https://www.mozilla.org/",
"rawValue": "\"https://www.mozilla.org/\""
}
],
"children": [
{
"type": "Text",
"span": {
"start": 171,
"end": 184,
"ctxt": 0
},
"data": "External Link",
"raw": "External Link"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 188,
"end": 189,
"ctxt": 0
},
"data": " ",
"raw": " "
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 200,
"end": 201,
"ctxt": 0
},
"data": "\n",
"raw": "\n"
},
{
"type": "Element",
"span": {
"start": 201,
"end": 253,
"ctxt": 0
},
"tagName": "a",
"namespace": "http://www.w3.org/1999/xhtml",
"attributes": [
{
"type": "Attribute",
"span": {
"start": 204,
"end": 235,
"ctxt": 0
},
"namespace": null,
"prefix": null,
"name": "href",
"rawName": "href",
"value": "https://www.mozilla.org/",
"rawValue": "\"https://www.mozilla.org/\""
}
],
"children": [
{
"type": "Text",
"span": {
"start": 236,
"end": 249,
"ctxt": 0
},
"data": "External Link",
"raw": "External Link"
}
],
"content": null,
"isSelfClosing": false
},
{
"type": "Text",
"span": {
"start": 253,
"end": 262,
"ctxt": 0
},
"data": "\n\n",
"raw": "\n\n"
}
],
"content": null,
"isSelfClosing": false
}
],
"content": null,
"isSelfClosing": false
}
]
}