Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[] (0) Kill Location.resolveURL() in favour of the new URL() API.
- Loading branch information
Showing
with
1 addition
and
70 deletions.
-
+0
−22
complete.html
-
+0
−22
index
-
+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> |
|
|
|
|
|
|
|
|
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> |
|
|
|
|
|
@@ -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"> |
|
|
|