HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2413

File a bug

SVNBugCommentTime (UTC)
2413location.resolveURL() for resolving relative URLs (for sending to workers, in particular) (credit: js)2008-11-18 03:40
Index: source
===================================================================
--- source	(revision 2412)
+++ source	(revision 2413)
@@ -41168,7 +41168,7 @@
   void <span title="dom-location-replace">replace</span>(in DOMString url);
   void <span title="dom-location-reload">reload</span>();
 
-    // <span>URL decomposition attributes</span> <!-- blame brendan for these "innovative" names -->
+  // <span>URL decomposition attributes</span> <!-- blame brendan for these "innovative" names -->
            attribute DOMString <span title="dom-location-protocol">protocol</span>;
            attribute DOMString <span title="dom-location-host">host</span>;
            attribute DOMString <span title="dom-location-hostname">hostname</span>;
@@ -41176,6 +41176,9 @@
            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>(in DOMString url);
 };</pre>
 
   <p>The <dfn title="dom-location-href"><code>href</code></dfn>
@@ -41221,6 +41224,18 @@
   with the <span>script browsing context</span> of the script that
   invoked the method as the <span>source browsing context</span>.</p>
 
+<!--XXX
+  <dfn title="dom-location-reload"><code>reload()</code></dfn>
+  reload during resize event:
+  redisplay the current page (without reloading it). This
+  theoretically would have no effect but in practice can be useful to
+  work around rendering bugs.
+
+reload on shared Document updates all of them
+
+user reload must be equivalent to .reload()
+-->
+
   <p>The <code>Location</code> interface also has the complement of
   <span>URL decomposition attributes</span>, <dfn
   title="dom-location-protocol"><code>protocol</code></dfn>, <dfn
@@ -41240,17 +41255,15 @@
   same as setting the <code title="dom-location-href">href</code>
   attribute to the new output value.</p>
 
-<!--
-  <dfn title="dom-location-reload"><code>reload()</code></dfn>
-  reload during resize event:
-  redisplay the current page (without reloading it). This
-  theoretically would have no effect but in practice can be useful to
-  work around rendering bugs.
+  <hr>
 
-reload on shared Document updates all of them
+  <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, and if
+  that succeeds, return the resulting <span>absolute URL</span>. If it
+  fails, it must throw a <code>SYNTAX_ERR</code> exception
+  instead.</p>
 
-user reload must be equivalent to .reload()
--->
 
   <h5>Security</h5>
 

|