Skip to content

Commit 73ab929

Browse files
authored
docs: improved attribute-coercion.md (#1092)
1 parent 28a141c commit 73ab929

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/guide/migration/attribute-coercion.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This is a low-level internal API change and does not affect most developers.
1414
Here is a high level summary of the changes:
1515

1616
- Drop the internal concept of enumerated attributes and treat those attributes the same as normal non-boolean attributes
17-
- **BREAKING**: No longer removes attribute if value is boolean `false`. Instead, it's set as attr="false" instead. To remove the attribute, use `null` or `undefined`.
17+
- **BREAKING**: No longer removes attribute if the value is boolean `false`. Instead, it's set as attr="false". To remove the attribute, use `null` or `undefined`.
1818

1919
For more information, read on!
2020

@@ -34,10 +34,10 @@ The following table describes how Vue coerce "enumerated attributes" differently
3434

3535
| Binding expression | `foo` <sup>normal</sup> | `draggable` <sup>enumerated</sup> |
3636
| ------------------- | ----------------------- | --------------------------------- |
37-
| `:attr="null"` | / | `draggable="false"` |
38-
| `:attr="undefined"` | / | / |
37+
| `:attr="null"` | - | `draggable="false"` |
38+
| `:attr="undefined"` | - | - |
3939
| `:attr="true"` | `foo="true"` | `draggable="true"` |
40-
| `:attr="false"` | / | `draggable="false"` |
40+
| `:attr="false"` | - | `draggable="false"` |
4141
| `:attr="0"` | `foo="0"` | `draggable="true"` |
4242
| `attr=""` | `foo=""` | `draggable="true"` |
4343
| `attr="foo"` | `foo="foo"` | `draggable="true"` |
@@ -60,8 +60,8 @@ The following table describes the new behavior:
6060

6161
| Binding expression | `foo` <sup>normal</sup> | `draggable` <sup>enumerated</sup> |
6262
| ------------------- | -------------------------- | --------------------------------- |
63-
| `:attr="null"` | / | / <sup>*</sup> |
64-
| `:attr="undefined"` | / | / |
63+
| `:attr="null"` | - | - <sup>*</sup> |
64+
| `:attr="undefined"` | - | - |
6565
| `:attr="true"` | `foo="true"` | `draggable="true"` |
6666
| `:attr="false"` | `foo="false"` <sup>*</sup> | `draggable="false"` |
6767
| `:attr="0"` | `foo="0"` | `draggable="0"` <sup>*</sup> |

0 commit comments

Comments
 (0)