Skip to content
Permalink
Browse files

[] (0) Kill Location.resolveURL() in favour of the new URL() API.

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 5584fbecea283985cf34546205f3b8fa23666a27
Showing with 1 addition and 70 deletions.
  1. +0 −22 complete.html
  2. +0 −22 index
  3. +1 −26 source
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>

</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>
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>

22 index
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>

</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>
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>

27 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
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">

</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">
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">

0 comments on commit 5584fbe

Please sign in to comment.
You can’t perform that action at this time.