swc/crates/swc_html_parser/tests/fixture/attribute-without-quotes/output.json

444 lines
7.5 KiB
JSON
Raw Normal View History

2022-04-04 07:12:45 +03:00
{
"type": "Document",
"span": {
"start": 0,
"end": 101,
"ctxt": 0
},
"children": [
{
"type": "TokenAndSpan",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"token": {
"Doctype": {
2022-04-08 12:19:58 +03:00
"raw_keyword": "DOCTYPE",
2022-04-04 07:12:45 +03:00
"name": "html",
2022-04-08 12:19:58 +03:00
"raw_name": "html",
2022-04-04 07:12:45 +03:00
"force_quirks": false,
2022-04-08 12:19:58 +03:00
"raw_public_keyword": null,
"public_quote": null,
2022-04-04 07:12:45 +03:00
"public_id": null,
2022-04-08 12:19:58 +03:00
"raw_system_keyword": null,
"system_quote": null,
2022-04-04 07:12:45 +03:00
"system_id": null
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 15,
"end": 16,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "\n",
"raw": "\n"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 16,
"end": 22,
"ctxt": 0
},
"token": {
"StartTag": {
"tag_name": "html",
2022-04-08 12:19:58 +03:00
"raw_tag_name": "html",
2022-04-04 07:12:45 +03:00
"self_closing": false,
"attributes": []
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 22,
"end": 23,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "\n",
"raw": "\n"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 23,
"end": 29,
"ctxt": 0
},
"token": {
"StartTag": {
"tag_name": "body",
2022-04-08 12:19:58 +03:00
"raw_tag_name": "body",
2022-04-04 07:12:45 +03:00
"self_closing": false,
"attributes": []
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "\n",
"raw": "\n"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "\n",
"raw": "\n"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 31,
"end": 65,
"ctxt": 0
},
"token": {
"StartTag": {
"tag_name": "a",
2022-04-08 12:19:58 +03:00
"raw_tag_name": "a",
2022-04-04 07:12:45 +03:00
"self_closing": false,
"attributes": [
{
"name": "href",
2022-04-08 12:19:58 +03:00
"raw_name": "href",
"value": "https://www.w3schools.com",
"raw_value": "https://www.w3schools.com"
2022-04-04 07:12:45 +03:00
}
]
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 65,
"end": 66,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "T",
"raw": "T"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 66,
"end": 67,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "h",
"raw": "h"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 67,
"end": 68,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "i",
"raw": "i"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "s",
"raw": "s"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 69,
"end": 70,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": " ",
"raw": " "
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 70,
"end": 71,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "i",
"raw": "i"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 71,
"end": 72,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "s",
"raw": "s"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 72,
"end": 73,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": " ",
"raw": " "
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 73,
"end": 74,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "a",
"raw": "a"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 74,
"end": 75,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": " ",
"raw": " "
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 75,
"end": 76,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "l",
"raw": "l"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 76,
"end": 77,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "i",
"raw": "i"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 77,
"end": 78,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "n",
"raw": "n"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 78,
"end": 79,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "k",
"raw": "k"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 79,
"end": 83,
"ctxt": 0
},
"token": {
"EndTag": {
"tag_name": "a",
2022-04-08 12:19:58 +03:00
"raw_tag_name": "a",
2022-04-04 07:12:45 +03:00
"self_closing": false,
"attributes": []
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "\n",
"raw": "\n"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 84,
"end": 85,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "\n",
"raw": "\n"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 85,
"end": 92,
"ctxt": 0
},
"token": {
"EndTag": {
"tag_name": "body",
2022-04-08 12:19:58 +03:00
"raw_tag_name": "body",
2022-04-04 07:12:45 +03:00
"self_closing": false,
"attributes": []
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 92,
"end": 93,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "\n",
"raw": "\n"
2022-04-04 07:12:45 +03:00
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 93,
"end": 100,
"ctxt": 0
},
"token": {
"EndTag": {
"tag_name": "html",
2022-04-08 12:19:58 +03:00
"raw_tag_name": "html",
2022-04-04 07:12:45 +03:00
"self_closing": false,
"attributes": []
}
}
},
{
"type": "TokenAndSpan",
"span": {
"start": 100,
"end": 101,
"ctxt": 0
},
"token": {
"Character": {
2022-04-08 12:19:58 +03:00
"value": "\n",
"raw": "\n"
2022-04-04 07:12:45 +03:00
}
}
}
]
}