- From: stevefaulkner <notifications@github.com>
- Date: Mon, 15 Dec 2014 09:26:45 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Message-ID: <w3c/webcomponents/pull/29/r21840894@github.com>
> <ul> > <li>by default a <a href="#dfn-custom-tag">custom tag</a> has no special meaning at all. It <a href="http://www.w3.org/TR/html/dom.html#represents">represents</a> its children.</li> > <li>by default a <a href="#dfn-type-extension">type extension</a> inherits the semantics of the element type it extends.</li> > </ul> > <h3 id="custom-tag-semantics">Custom Tag Semantics</h3> > <p>By default a <a href="#dfn-custom-tag">custom tag</a> has no special meaning at all. It <a href="http://www.w3.org/TR/html/dom.html#represents">represents</a> its children.</p> > -<p>For example a custom tag, could be named <em>taco-button</em> but it does not express the semantics of a HTML <a href="http://www.w3.org/TR/html/forms.html#the-button-element"><code>button</code></a> element simply due to its name. As instaniated a custom tag conveys a similar amount of semantics as a HTML <a href="http://www.w3.org/TR/html/grouping-content.html#the-div-element"><code>div</code></a> or <code><a href="http://www.w3.org/TR/html/text-level-semantics.html#the-span-element">span</a></code> element. The addition of visual styling and scripted events to the <em>taco-button</em> could provide hints as to the semantics and expected interaction behaviours of the custom element for <em>some</em> users, but for the semantics to be formally expressed, developers must convey the role, states and properties of the element to browser APIs.</p> > +<h4 id="custom-tag-example">Custom Tag Example</h4> done --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/pull/29/files#r21840894
Received on Monday, 15 December 2014 17:27:20 UTC