You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/parser/samples/element-with-attribute/output.json

65 lines
945 B

{
"html": {
"start": 0,
"end": 49,
"type": "Fragment",
"children": [
{
"start": 0,
"end": 24,
"type": "Element",
"name": "span",
"attributes": [
{
"start": 6,
"end": 16,
"type": "Attribute",
"name": "attr",
"value": [
{
"start": 12,
"end": 15,
"type": "Text",
"raw": "foo",
"data": "foo"
}
]
}
],
"children": []
},
{
"start": 24,
"end": 25,
"type": "Text",
"raw": "\n",
"data": "\n"
},
{
"start": 25,
"end": 49,
"type": "Element",
"name": "span",
"attributes": [
{
"start": 31,
"end": 41,
"type": "Attribute",
"name": "attr",
"value": [
{
"start": 37,
"end": 40,
"type": "Text",
"raw": "bar",
"data": "bar"
}
]
}
],
"children": []
}
]
}
}