Skip to content

Commit

Permalink
Editorial: mention options argument in createElement[NS] definition
Browse files Browse the repository at this point in the history
Thanks again Arkadiusz Michalski!
  • Loading branch information
annevk committed Apr 8, 2016
1 parent 7f63535 commit 2168da2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4665,7 +4665,7 @@ stated otherwise.
and the <a>HTML namespace</a>, the {{HTMLHtmlElement}} interface is used.
[[!HTML]]

The <dfn method for=Document><code>createElement(<var>localName</var>)</code></dfn> method, when
The <dfn method for=Document><code>createElement(<var>localName</var>, <var>options</var>)</code></dfn> method, when
invoked, must run these steps:

<ol>
Expand Down Expand Up @@ -4700,7 +4700,7 @@ invoked, must run these steps:
</ol>

The
<dfn method for=Document><code>createElementNS(<var>namespace</var>, <var>qualifiedName</var>)</code></dfn>
<dfn method for=Document><code>createElementNS(<var>namespace</var>, <var>qualifiedName</var>, <var>options</var>)</code></dfn>
method, when invoked, must run these steps:

<ol>
Expand Down
6 changes: 3 additions & 3 deletions dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<p data-fill-with="logo"><a class="logo" href="https://whatwg.org/"> <img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-dom.svg"> </a> </p>
<hgroup>
<h1 class="p-name no-ref allcaps" id="title">DOM</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2016-04-07">7 April 2016</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2016-04-08">8 April 2016</time></span></h2>
</hgroup>
<div data-fill-with="spec-metadata">
<dl>
Expand Down Expand Up @@ -2593,7 +2593,7 @@ <h3 class="heading settled" data-level="4.5" id="interface-document"><span class
<p>The <dfn data-dfn-type="dfn" data-export="" id="concept-element-interface">element interface<a class="self-link" href="#concept-element-interface"></a></dfn> for any <var>name</var> and <var>namespace</var> is <code class="idl"><a data-link-type="idl" href="#element">Element</a></code>, unless
stated otherwise.</p>
<p class="note no-backref" role="note">The HTML Standard will e.g. define that for <code>html</code> and the <a data-link-type="dfn" href="#html-namespace">HTML namespace</a>, the <code class="idl"><a data-link-type="idl" href="https://html.spec.whatwg.org/multipage/semantics.html#htmlhtmlelement">HTMLHtmlElement</a></code> interface is used. <a data-link-type="biblio" href="#biblio-html">[HTML]</a> </p>
<p>The <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="method" data-export="" data-lt="createElement(localName, options)|createElement(localName)" id="dom-document-createelement"><code>createElement(<var>localName</var>)</code><a class="self-link" href="#dom-document-createelement"></a></dfn> method, when
<p>The <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="method" data-export="" data-lt="createElement(localName, options)|createElement(localName)" id="dom-document-createelement"><code>createElement(<var>localName</var>, <var>options</var>)</code><a class="self-link" href="#dom-document-createelement"></a></dfn> method, when
invoked, must run these steps:</p>
<ol>
<li>If <var>localName</var> does not match the <code><a class="css" data-link-type="type" href="https://www.w3.org/TR/xml/#NT-Name">Name</a></code> production, <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-throw">throw</a> an <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#invalidcharactererror">InvalidCharacterError</a></code> exception.
Expand All @@ -2609,7 +2609,7 @@ <h3 class="heading settled" data-level="4.5" id="interface-document"><span class
"<code>is</code>" and <var>is</var>.
<li>Return <var>element</var>.
</ol>
<p>The <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="method" data-export="" data-lt="createElementNS(namespace, qualifiedName, options)|createElementNS(namespace, qualifiedName)" id="dom-document-createelementns"><code>createElementNS(<var>namespace</var>, <var>qualifiedName</var>)</code><a class="self-link" href="#dom-document-createelementns"></a></dfn> method, when invoked, must run these steps:</p>
<p>The <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="method" data-export="" data-lt="createElementNS(namespace, qualifiedName, options)|createElementNS(namespace, qualifiedName)" id="dom-document-createelementns"><code>createElementNS(<var>namespace</var>, <var>qualifiedName</var>, <var>options</var>)</code><a class="self-link" href="#dom-document-createelementns"></a></dfn> method, when invoked, must run these steps:</p>
<ol>
<li>Let <var>namespace</var>, <var>prefix</var>, and <var>localName</var> be the result of passing <var>namespace</var> and <var>qualifiedName</var> to <a data-link-type="dfn" href="#validate-and-extract">validate and extract</a>. Rethrow any
exceptions.
Expand Down

0 comments on commit 2168da2

Please sign in to comment.