docs: Fix a regression for a quoted-attribute example (#9103)

* Fix a doc regression for a quoted-attribute example

* Prettier ignore

---------

Co-authored-by: Puru Vijay <47742487+PuruVJ@users.noreply.github.com>
pull/9104/head
Andy Pan 2 years ago committed by GitHub
parent 3597cedbd8
commit 037b6ce312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,8 +56,9 @@ All other attributes are included unless their value is [nullish](https://develo
An expression might include characters that would cause syntax highlighting to fail in regular HTML, so quoting the value is permitted. The quotes do not affect how the value is parsed:
<!-- prettier-ignore -->
```svelte
<button disabled={number !== 42}>...</button>
<button disabled="{number !== 42}">...</button>
```
When the attribute name and value match (`name={name}`), they can be replaced with `{name}`.

Loading…
Cancel
Save