Skip to content

Commit

Permalink
Address @annevk's editorial concerns
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Mar 2, 2016
1 parent 8e5bc41 commit f6b53f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/custom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@

<section id='abstract'>

<p>This specification describes the method for enabling the author to define and use new types of DOM elements in a document. It will eventually be upstreamed into [[!WHATWG-DOM]] and [[!HTML]].</p>
<p>This specification describes the method for enabling the author to define and use new types of DOM elements in a document. It will eventually be upstreamed into [[!WHATWG-DOM]], [[!HTML]], and [[!WEBIDL]].</p>

</section>

Expand Down Expand Up @@ -112,7 +112,7 @@ <h2>Motivations</h2>
<section>
<h2>Concepts</h2>

<p>A <dfn id="dfn-custom-element">custom element</dfn> is <a href="https://heycam.github.io/webidl/#dfn-platform-object">platform object</a> whose constructor and prototype is defined by the author. The constructor function supplied by the author is called the <dfn id="dfn-custom-element-constructor">custom element constructor</dfn>.</p>
<p>A <dfn id="dfn-custom-element">custom element</dfn> is a <a href="https://heycam.github.io/webidl/#dfn-platform-object">platform object</a> whose constructor and prototype is defined by the author. The constructor function supplied by the author is called the <dfn id="dfn-custom-element-constructor">custom element constructor</dfn>.</p>

<p>The <dfn id="dfn-custom-element-type">custom element type</dfn> identifies a <a>custom element</a> <a href="https://heycam.github.io/webidl/#dfn-interface">interface</a> and is a sequence of characters that MUST match the <a href="https://www.w3.org/TR/xml-names/#NT-NCName">NCName</a> production [[!XML-NAMES]], MUST contain a <var>U+002D HYPHEN-MINUS</var> character, and MUST NOT contain any <a href="https://html.spec.whatwg.org/multipage/infrastructure.html#uppercase-ascii-letters">uppercase ASCII letters</a> [[!HTML]]. The <a>custom element type</a> MUST NOT be one of the following values:</p>
<ul>
Expand Down Expand Up @@ -341,7 +341,7 @@ <h2>Registering Custom Elements</h2>
<section id="extensions-to-document-interface-to-register">
<h3>New <a href="https://dom.spec.whatwg.org/#document"><code>Document</code></a> Method</h3>

<p>The <dfn for="Document">defineElement</dfn> method of the <a href="https://dom.spec.whatwg.org/#document">Document</a> interface provides a way to <a data-lt="element registration">register</a> a <a>custom element</a>.</p>
<p>The <a href="#dom-document-defineelement"><code>defineElement</code></a> method of the <a href="https://dom.spec.whatwg.org/#document">Document</a> interface provides a way to <a data-lt="element registration">register</a> a <a>custom element</a>.</p>

<pre class='idl'>
partial interface Document {
Expand All @@ -353,7 +353,7 @@ <h3>New <a href="https://dom.spec.whatwg.org/#document"><code>Document</code></a
};
</pre>

<p>The <a for="Document">defineElement</a> method, when invoked, must run these steps:</p>
<p>The <dfn id="dom-document-defineelement"><code>defineElement(<var>type</var>, <var>constructor</var>, <var>options</var>)</code></dfn> method, when invoked, must run these steps:</p>

<ol>
<li>If <a href="https://tc39.github.io/ecma262/#sec-isconstructor">IsConstructor</a>(<var>constructor</var>) is false, <a href="https://heycam.github.io/webidl/#dfn-throw">throw</a> a <code>TypeError</code> and abort these steps.</li>
Expand Down

0 comments on commit f6b53f4

Please sign in to comment.