Skip to content

Commit 9655a81

Browse files
authored
docs: attr is data-vmid not just vmid (#519)
Actual output is data-vmid
1 parent a94b2bc commit 9655a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/faq/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ This is not what we want, since the meta `description` needs to be unique for ev
7070
**Output:**
7171
```html
7272
<meta charset="utf-8">
73-
<meta vmid="description" name="description" content="bar">
73+
<meta data-vmid="description" name="description" content="bar">
7474
```
7575

7676
While solutions like `react-helmet` manage the occurrence order and merge behaviour for you automatically, it involves a lot more code and is therefore prone to failure in some edge-cases, whereas this method is _almost_ bulletproof because of its versatility; _at the expense of one tradeoff:_ these `vmid` properties will be rendered out in the final markup (`vue-meta` uses these client-side to prevent duplicating or overriding markup). If you are serving your content gzipped, then the slight increase in HTTP payload size is negligible.

0 commit comments

Comments
 (0)