Skip to content

Commit 037b6ce

Browse files
andy0130twPuruVJ
andauthored
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 <[email protected]>
1 parent 3597ced commit 037b6ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

documentation/docs/02-template-syntax/02-basic-markup.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ All other attributes are included unless their value is [nullish](https://develo
5656

5757
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:
5858

59+
<!-- prettier-ignore -->
5960
```svelte
60-
<button disabled={number !== 42}>...</button>
61+
<button disabled="{number !== 42}">...</button>
6162
```
6263

6364
When the attribute name and value match (`name={name}`), they can be replaced with `{name}`.

0 commit comments

Comments
 (0)