From e8a1c26087a926360da39fb97386ab7efbd92770 Mon Sep 17 00:00:00 2001 From: Julio Sangrador-Paton Date: Sun, 26 Aug 2018 13:02:21 +0200 Subject: [PATCH] Update W3C link about custom element naming The link currently referenced goes to a warning about looking up the spec somewhere else. I am linking to that page instead. --- src/v2/guide/components-registration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/components-registration.md b/src/v2/guide/components-registration.md index be4364b788..ec25f02607 100644 --- a/src/v2/guide/components-registration.md +++ b/src/v2/guide/components-registration.md @@ -16,7 +16,7 @@ Vue.component('my-component-name', { /* ... */ }) The component's name is the first argument of `Vue.component`. -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. +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. You can see other recommendations for component names in the [Style Guide](../style-guide/#Base-component-names-strongly-recommended).