Skip to content

Commit

Permalink
Fix #118: clarify documentURI/URL and baseURI return a serialized value
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jan 1, 2016
1 parent f69832f commit b4664d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3055,7 +3055,7 @@ the first matching statement, switching on the <a>context object</a>:
</dl>

The <dfn attribute for=Node><code>baseURI</code></dfn> attribute's getter must return
<a>node document</a>'s <a>base URL</a>.
<a>node document</a>'s <a>base URL</a>, <a lt="URL serializer" spec=url>serialized</a>.

<hr>

Expand Down Expand Up @@ -4085,9 +4085,9 @@ The
attribute must return the {{DOMImplementation}} object that is
associated with the <a>document</a>.

The <dfn attribute for="Document">URL</dfn> and
<dfn attribute for="Document">documentURI</dfn>
attributes must return the <a for=Document>URL</a>.
The <dfn attribute for="Document"><code>URL</code></dfn> and
<dfn attribute for="Document"><code>documentURI</code></dfn> attributes' getters must return the
<a for=Document>URL</a>, <a lt="URL serializer" spec=url>serialized</a>.

The <dfn attribute for="Document">origin</dfn>
attribute must return the
Expand Down
9 changes: 7 additions & 2 deletions dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -1750,7 +1750,7 @@ <h3 class="heading settled" data-level="4.4" id="interface-node"><span class="se
<dt><code><var>node</var> . <code class="idl"><a data-link-type="idl" href="#dom-node-baseuri">baseURI</a></code></code>
<dd>Returns <var>node</var>’s <a data-link-type="dfn" href="#concept-node-document">node document</a>’s <a data-link-type="dfn" href="#concept-document-base-url">base URL</a>.
</dl>
<p>The <dfn class="idl-code" data-dfn-for="Node" data-dfn-type="attribute" data-export="" id="dom-node-baseuri"><code>baseURI</code><a class="self-link" href="#dom-node-baseuri"></a></dfn> attribute’s getter must return <a data-link-type="dfn" href="#concept-node-document">node document</a>’s <a data-link-type="dfn" href="#concept-document-base-url">base URL</a>.</p>
<p>The <dfn class="idl-code" data-dfn-for="Node" data-dfn-type="attribute" data-export="" id="dom-node-baseuri"><code>baseURI</code><a class="self-link" href="#dom-node-baseuri"></a></dfn> attribute’s getter must return <a data-link-type="dfn" href="#concept-node-document">node document</a>’s <a data-link-type="dfn" href="#concept-document-base-url">base URL</a>, <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url-serializer">serialized</a>.</p>
<hr>
<dl class="domintro">
<dt><code><var>node</var> . <code class="idl"><a data-link-type="idl" href="#dom-node-ownerdocument">ownerDocument</a></code></code>
Expand Down Expand Up @@ -2220,7 +2220,7 @@ <h3 class="heading settled" data-level="4.5" id="interface-document"><span class
<p class="note no-backref" role="note">Unlike <code class="idl"><a data-link-type="idl" href="#dom-domimplementation-createdocument">createDocument()</a></code> this constructor does not return an <code class="idl"><a data-link-type="idl" href="#xmldocument">XMLDocument</a></code> object, but a <a data-link-type="dfn" href="#concept-document">document</a> (<code class="idl"><a data-link-type="idl" href="#document">Document</a></code> object). </p>
<p>The <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="attribute" data-export="" id="dom-document-implementation">implementation<a class="self-link" href="#dom-document-implementation"></a></dfn> attribute must return the <code class="idl"><a data-link-type="idl" href="#domimplementation">DOMImplementation</a></code> object that is
associated with the <a data-link-type="dfn" href="#concept-document">document</a>.</p>
<p>The <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="attribute" data-export="" id="dom-document-url">URL<a class="self-link" href="#dom-document-url"></a></dfn> and <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="attribute" data-export="" id="dom-document-documenturi">documentURI<a class="self-link" href="#dom-document-documenturi"></a></dfn> attributes must return the <a data-link-type="dfn" href="#concept-document-url">URL</a>.</p>
<p>The <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="attribute" data-export="" id="dom-document-url"><code>URL</code><a class="self-link" href="#dom-document-url"></a></dfn> and <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="attribute" data-export="" id="dom-document-documenturi"><code>documentURI</code><a class="self-link" href="#dom-document-documenturi"></a></dfn> attributes' getters must return the <a data-link-type="dfn" href="#concept-document-url">URL</a>, <a data-link-type="dfn" href="https://url.spec.whatwg.org/#concept-url-serializer">serialized</a>.</p>
<p>The <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="attribute" data-export="" id="dom-document-origin">origin<a class="self-link" href="#dom-document-origin"></a></dfn> attribute must return the <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#unicode-serialization-of-an-origin">Unicode serialization</a> of <a data-link-type="dfn" href="#context-object">context object</a>’s <a data-link-type="dfn" href="https://html.spec.whatwg.org/multipage/browsers.html#origin">origin</a>.</p>
<p>The <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="attribute" data-export="" id="dom-document-compatmode"><code>compatMode</code><a class="self-link" href="#dom-document-compatmode"></a></dfn> attribute’s getter must
return "<code>BackCompat</code>" if <a data-link-type="dfn" href="#context-object">context object</a>’s <a data-link-type="dfn" href="#concept-document-mode">mode</a> is
Expand Down Expand Up @@ -5327,6 +5327,11 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
<li><a href="https://drafts.csswg.org/selectors-4/#scope-filtered">scope-filtered</a>
<li><a href="https://drafts.csswg.org/selectors-4/#scoping-root">scoping root</a>
</ul>
<li>
<a data-link-type="biblio" href="#biblio-url">[url]</a> defines the following terms:
<ul>
<li><a href="https://url.spec.whatwg.org/#concept-url-serializer">url serializer</a>
</ul>
<li>
<a data-link-type="biblio" href="#biblio-webidl">[WebIDL]</a> defines the following terms:
<ul>
Expand Down

0 comments on commit b4664d6

Please sign in to comment.