Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed code examples #27

Merged
merged 1 commit into from
Dec 9, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/custom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -796,11 +796,11 @@ <h3>Type Extension Semantics </h3>
<p>By default a <a href="#dfn-type-extension">type extension</a> inherits the semantics of the element type it extends.</p>
<p>For example a type extension, could extend the HTML <a href="http://www.w3.org/TR/html/forms.html#the-button-element"><code>button</code></a> element. As instaniated it would inherit the <code>button</code> element's name, role, states and properties, built in focus and keyboard interaction behaviours. </p>
<pre><code class="prettyprint">&lt;!-- taco-button represents a button with an accesssible name of &quot;Eat Me!&quot; -->
&lt;button <mark>is=&quot;taco-button&quot;</mark>&gt;Eat Me!&lt;/taco-button&gt;</code>
&lt;button <mark>is=&quot;taco-button&quot;</mark>&gt;Eat Me!&lt;/button&gt;</code>
</pre>
<p>To provide the desired <em>taco-button</em> feature, all that is required is the addition of an event handler. The rest of the semantics and interaction behaviour are provided by the browser as part of its implementation of the <a href="http://www.w3.org/TR/html/forms.html#the-button-element"><code>button</code></a> element.</p>
<pre><code class="prettyprint">&lt;!-- taco-button represents a button -->
&lt;button is=&quot;taco-button&quot; <mark>onclick=&quot;alert('tasty eh?');&quot;</mark>&gt;Eat Me!&lt;/taco-button&gt;</code>
&lt;button is=&quot;taco-button&quot; <mark>onclick=&quot;alert('tasty eh?');&quot;</mark>&gt;Eat Me!&lt;/button&gt;</code>
</pre>
<p class="note">TO DO </p>
<h2 id="appendix-a">Appendix A: All Algorithms in One Diagram</h2>
Expand Down