Skip to content

Commit b8a24f4

Browse files
committed
Merge branch 'feature/ignore-namespace' of github.com:waynzh/eslint-plugin-vue into feature/ignore-namespace
2 parents ba16740 + ed256b9 commit b8a24f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/rules/no-v-text-v-html-on-component.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ If you use v-text / v-html on a component, it will overwrite the component's con
5151
```
5252

5353
- `allow` (`string[]`) ... Specify a list of custom components for which the rule should not apply.
54-
- `ignoreElementNamespaces` (`boolean`) ... Specify whether to ignore the namespace restrictions for SVG and MathML elements, so that the rule should not apply. Default is `false`.
54+
- `ignoreElementNamespaces` (`boolean`) ... If `true`, always treat SVG and MathML tag names as HTML elements, even if they are not used inside a SVG/MathML root element. Default is `false`.
5555

5656
### `{ "allow": ["router-link", "nuxt-link"] }`
5757

@@ -77,8 +77,8 @@ If you use v-text / v-html on a component, it will overwrite the component's con
7777
```vue
7878
<template>
7979
<!-- ✓ GOOD -->
80-
<g v-text="content" /> <!-- <svg> -->
81-
<mi v-text="content" /> <!-- <math> -->
80+
<g v-text="content" /> <!-- SVG element not inside of <svg> -->
81+
<mi v-text="content" /> <!-- MathML element not inside of <math> -->
8282
</template>
8383
```
8484

0 commit comments

Comments
 (0)