Skip to content

Commit 6f904c1

Browse files
proposal of 'allow listing' as an inclusive alternative to 'whitelisting' (#956)
* proposoal of 'allow listing' as an inclusive alternative to 'whitelisting' * Update src/guide/migration/introduction.md Co-authored-by: skirtle <[email protected]> * Update src/guide/migration/custom-elements-interop.md Co-authored-by: skirtle <[email protected]> * Update src/guide/template-syntax.md Co-authored-by: skirtle <[email protected]> * Update src/guide/migration/custom-elements-interop.md Co-authored-by: skirtle <[email protected]> Co-authored-by: skirtle <[email protected]>
1 parent c94b11f commit 6f904c1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/guide/migration/custom-elements-interop.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ badges:
77

88
## Overview
99

10-
- **BREAKING:** Custom elements whitelisting is now performed during template compilation, and should be configured via compiler options instead of runtime config.
10+
- **BREAKING:** The checks to determine whether tags should be treated as custom elements are now performed during template compilation, and should be configured via compiler options instead of runtime config.
1111
- **BREAKING:** Special `is` prop usage is restricted to the reserved `<component>` tag only.
1212
- **NEW:** There is new `v-is` directive to support 2.x use cases where `is` was used on native elements to work around native HTML parsing restrictions.
1313

@@ -21,7 +21,7 @@ If we want to add a custom element defined outside of Vue (e.g. using the Web Co
2121

2222
### 2.x Syntax
2323

24-
In Vue 2.x, whitelisting tags as custom elements was done via `Vue.config.ignoredElements`:
24+
In Vue 2.x, configuring tags as custom elements was done via `Vue.config.ignoredElements`:
2525

2626
```js
2727
// This will make Vue ignore custom element defined outside of Vue

src/guide/migration/introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The following consists a list of breaking changes from 2.x:
8989

9090
### Custom Elements
9191

92-
- [Custom elements whitelisting is now performed during template compilation](/guide/migration/custom-elements-interop.html)
92+
- [Custom element checks are now performed during template compilation](/guide/migration/custom-elements-interop.html)
9393
- [Special `is` prop usage is restricted to the reserved `<component>` tag only](/guide/migration/custom-elements-interop.html#customized-built-in-elements)
9494

9595
### Other Minor Changes

src/guide/template-syntax.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,4 @@ Unless you have a "someattr" property in your instance, your code won't work.
206206

207207
#### JavaScript Expressions
208208

209-
Template expressions are sandboxed and only have access to a [whitelist of globals](https://github.com/vuejs/vue-next/blob/master/packages/shared/src/globalsWhitelist.ts#L3) such as `Math` and `Date`. You should not attempt to access user defined globals in template expressions.
209+
Template expressions are sandboxed and only have access to a [restricted list of globals](https://github.com/vuejs/vue-next/blob/master/packages/shared/src/globalsWhitelist.ts#L3) such as `Math` and `Date`. You should not attempt to access user defined globals in template expressions.

0 commit comments

Comments
 (0)