Skip to content

Commit

Permalink
docs: attr is data-vmid not just vmid (#519)
Browse files Browse the repository at this point in the history
Actual output is data-vmid
  • Loading branch information
719media committed Feb 23, 2020
1 parent a94b2bc commit 9655a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/faq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ This is not what we want, since the meta `description` needs to be unique for ev
**Output:**
```html
<meta charset="utf-8">
<meta vmid="description" name="description" content="bar">
<meta data-vmid="description" name="description" content="bar">
```

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 comments on commit 9655a81

Please sign in to comment.