Skip to content

Commit c7872f7

Browse files
jsangradorpsdras
authored andcommitted
Update W3C link about custom element naming (#1769)
The link currently referenced goes to a warning about looking up the spec somewhere else. I am linking to that page instead.
1 parent a6b5df8 commit c7872f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/components-registration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Vue.component('my-component-name', { /* ... */ })
1616

1717
The component's name is the first argument of `Vue.component`.
1818

19-
The name you give a component may depend on where you intend to use it. When using a component directly in the DOM (as opposed to in a string template or [single-file component](single-file-components.html)), we strongly recommend following the [W3C rules](https://www.w3.org/TR/custom-elements/#concepts) for custom tag names (all-lowercase, must contain a hyphen). This helps you avoid conflicts with current and future HTML elements.
19+
The name you give a component may depend on where you intend to use it. When using a component directly in the DOM (as opposed to in a string template or [single-file component](single-file-components.html)), we strongly recommend following the [W3C rules](https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name) for custom tag names (all-lowercase, must contain a hyphen). This helps you avoid conflicts with current and future HTML elements.
2020

2121
You can see other recommendations for component names in the [Style Guide](../style-guide/#Base-component-names-strongly-recommended).
2222

0 commit comments

Comments
 (0)