mirror of https://github.com/sveltejs/svelte
Allow whitespace after = in attributes (#3026)
parent
acdcaa41bf
commit
ea74bfec55
@ -0,0 +1 @@
|
|||||||
|
<button on:click= {foo}>Click</button>
|
@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"html": {
|
||||||
|
"start": 0,
|
||||||
|
"end": 38,
|
||||||
|
"type": "Fragment",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"start": 0,
|
||||||
|
"end": 38,
|
||||||
|
"type": "Element",
|
||||||
|
"name": "button",
|
||||||
|
"attributes": [
|
||||||
|
{
|
||||||
|
"start": 8,
|
||||||
|
"end": 23,
|
||||||
|
"type": "EventHandler",
|
||||||
|
"name": "click",
|
||||||
|
"modifiers": [],
|
||||||
|
"expression": {
|
||||||
|
"type": "Identifier",
|
||||||
|
"start": 19,
|
||||||
|
"end": 22,
|
||||||
|
"name": "foo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"start": 24,
|
||||||
|
"end": 29,
|
||||||
|
"type": "Text",
|
||||||
|
"raw": "Click",
|
||||||
|
"data": "Click"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue