Skip to content

Commit

Permalink
[] (0) Kill Location.resolveURL() in favour of the new URL() API.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=14148

git-svn-id: http://svn.whatwg.org/webapps@6745 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 25, 2011
1 parent e70ec7e commit 5584fbe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 70 deletions.
22 changes: 0 additions & 22 deletions complete.html
Expand Up @@ -64321,9 +64321,6 @@ <h4 id=the-location-interface><span class=secno>6.4.3 </span>The <code><a href=#
attribute DOMString <a href=#dom-location-pathname title=dom-location-pathname>pathname</a>;
attribute DOMString <a href=#dom-location-search title=dom-location-search>search</a>;
attribute DOMString <a href=#dom-location-hash title=dom-location-hash>hash</a>;

// resolving relative URLs
DOMString <a href=#dom-location-resolveurl title=dom-location-resolveURL>resolveURL</a>(DOMString url);
};</pre>

<dl class=domintro><dt><var title="">location</var> . <code title=dom-location-href><a href=#dom-location-href>href</a></code> [ = <var title="">value</var> ]</dt>
Expand Down Expand Up @@ -64360,14 +64357,6 @@ <h4 id=the-location-interface><span class=secno>6.4.3 </span>The <code><a href=#

</dd>

<dt><var title="">url</var> = <var title="">location</var> . <code title=dom-location-resolveURL><a href=#dom-location-resolveurl>resolveURL</a></code>(<var title="">url</var>)</dt>

<dd>

<p>Resolves the given relative URL to an absolute URL.</p>

</dd>

</dl><div class=impl>

<p>The <dfn id=dom-location-href title=dom-location-href><code>href</code></dfn>
Expand Down Expand Up @@ -64477,17 +64466,6 @@ <h4 id=the-location-interface><span class=secno>6.4.3 </span>The <code><a href=#
action</a> being the same as setting the <code title=dom-location-href><a href=#dom-location-href>href</a></code> attribute to the new output
value.</span></p>

<div class=impl>

<hr><p>The <dfn id=dom-location-resolveurl title=dom-location-resolveURL><code>resolveURL(<var title="">url</var>)</code></dfn> method must <a href=#resolve-a-url title="resolve a
url">resolve</a> its <var title="">url</var> argument, relative
to the <a href=#entry-script>entry script</a>'s <a href="#script's-base-url" title="script's base
URL">base URL</a>, and if that succeeds, return the resulting
<a href=#absolute-url>absolute URL</a>. If it fails, it must throw a
<code><a href=#syntaxerror>SyntaxError</a></code> exception instead.</p>

</div>


<div class=impl>

Expand Down
22 changes: 0 additions & 22 deletions index
Expand Up @@ -64321,9 +64321,6 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU
attribute DOMString <a href=#dom-location-pathname title=dom-location-pathname>pathname</a>;
attribute DOMString <a href=#dom-location-search title=dom-location-search>search</a>;
attribute DOMString <a href=#dom-location-hash title=dom-location-hash>hash</a>;

// resolving relative URLs
DOMString <a href=#dom-location-resolveurl title=dom-location-resolveURL>resolveURL</a>(DOMString url);
};</pre>

<dl class=domintro><dt><var title="">location</var> . <code title=dom-location-href><a href=#dom-location-href>href</a></code> [ = <var title="">value</var> ]</dt>
Expand Down Expand Up @@ -64360,14 +64357,6 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU

</dd>

<dt><var title="">url</var> = <var title="">location</var> . <code title=dom-location-resolveURL><a href=#dom-location-resolveurl>resolveURL</a></code>(<var title="">url</var>)</dt>

<dd>

<p>Resolves the given relative URL to an absolute URL.</p>

</dd>

</dl><div class=impl>

<p>The <dfn id=dom-location-href title=dom-location-href><code>href</code></dfn>
Expand Down Expand Up @@ -64477,17 +64466,6 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU
action</a> being the same as setting the <code title=dom-location-href><a href=#dom-location-href>href</a></code> attribute to the new output
value.</span></p>

<div class=impl>

<hr><p>The <dfn id=dom-location-resolveurl title=dom-location-resolveURL><code>resolveURL(<var title="">url</var>)</code></dfn> method must <a href=#resolve-a-url title="resolve a
url">resolve</a> its <var title="">url</var> argument, relative
to the <a href=#entry-script>entry script</a>'s <a href="#script's-base-url" title="script's base
URL">base URL</a>, and if that succeeds, return the resulting
<a href=#absolute-url>absolute URL</a>. If it fails, it must throw a
<code><a href=#syntaxerror>SyntaxError</a></code> exception instead.</p>

</div>


<div class=impl>

Expand Down
27 changes: 1 addition & 26 deletions source
@@ -1,4 +1,4 @@
<!-- EDITOR NOTES
veurl<!-- EDITOR NOTES
!
! Adding a new element involves editing the following sections:
! - description of the element's categories
Expand Down Expand Up @@ -73022,9 +73022,6 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O
attribute DOMString <span title="dom-location-pathname">pathname</span>;
attribute DOMString <span title="dom-location-search">search</span>;
attribute DOMString <span title="dom-location-hash">hash</span>;

// resolving relative URLs
DOMString <span title="dom-location-resolveURL">resolveURL</span>(DOMString url);
};</pre>

<dl class="domintro">
Expand Down Expand Up @@ -73063,14 +73060,6 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O

</dd>

<dt><var title="">url</var> = <var title="">location</var> . <code title="dom-location-resolveURL">resolveURL</code>(<var title="">url</var>)</dt>

<dd>

<p>Resolves the given relative URL to an absolute URL.</p>

</dd>

</dl>

<div class="impl">
Expand Down Expand Up @@ -73208,20 +73197,6 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O
title="dom-location-href">href</code> attribute to the new output
value.</span></p>

<div class="impl">

<hr>

<p>The <dfn title="dom-location-resolveURL"><code>resolveURL(<var
title="">url</var>)</code></dfn> method must <span title="resolve a
url">resolve</span> its <var title="">url</var> argument, relative
to the <span>entry script</span>'s <span title="script's base
URL">base URL</span>, and if that succeeds, return the resulting
<span>absolute URL</span>. If it fails, it must throw a
<code>SyntaxError</code> exception instead.</p>

</div>


<div class="impl">

Expand Down

0 comments on commit 5584fbe

Please sign in to comment.