Skip to content

Commit 92232b2

Browse files
committed
Merge pull request #261 from dajnz/patch-1
Fix a minor typo in file
2 parents bf173f5 + b503618 commit 92232b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Vue.js template engine is DOM-based and uses native parser that comes with the b
145145
- `table` can only contain `thead`, `tbody`, `tfoot` and `tr`, and these elements should be direct cildren of `table`
146146
- `tr` can only contain `th` and `td`, and these elements should be direct children of `tr`
147147

148-
In practive these restriction can cause unexpected behavior. Although in simple cases it might appear to work, you can not rely on custom elements being expanded before browser validation. E.g. `<my-select><option>...</option></my-select>` is not a valid template even if `my-select` component eventually expands to `<select>...</select>`.
148+
In practice these restriction can cause unexpected behavior. Although in simple cases it might appear to work, you can not rely on custom elements being expanded before browser validation. E.g. `<my-select><option>...</option></my-select>` is not a valid template even if `my-select` component eventually expands to `<select>...</select>`.
149149

150150
Another consequence is that you can not use custom tags (including custom elements and special tags like `<component>`, `<template>` and `<partial>`) inside of `ul`, `select`, `table` and other elements with similar restrictions. Custom tags will be hoisted out and thus not render properly.
151151

0 commit comments

Comments
 (0)