Skip to content

Commit

Permalink
Merge pull request #27 from stevefaulkner/gh-pages
Browse files Browse the repository at this point in the history
fixed code examples
  • Loading branch information
dglazkov committed Dec 9, 2014
2 parents b14e2da + dacb03c commit 0419072
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 0419072

Please sign in to comment.