[html5] r4965 - [giowt] (2) Define how a URL is established as being 'hierarchical' or 'authorit [...]

whatwg at whatwg.org whatwg at whatwg.org
Sun Apr 4 00:40:09 PDT 2010


Author: ianh
Date: 2010-04-04 00:40:07 -0700 (Sun, 04 Apr 2010)
New Revision: 4965

Modified:
   complete.html
   index
   source
Log:
[giowt] (2) Define how a URL is established as being 'hierarchical' or 'authority-based'.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9035

Modified: complete.html
===================================================================
--- complete.html	2010-04-04 07:03:05 UTC (rev 4964)
+++ complete.html	2010-04-04 07:40:07 UTC (rev 4965)
@@ -5557,6 +5557,16 @@
   <span>absolute Web address</span> as defined by the Web addresses
   specification. <a href=#refsWEBADDRESSES>[WEBADDRESSES]</a></p>
 
+  <p>An <a href=#absolute-url>absolute URL</a> is a <dfn id=hierarchical-url>hierarchical URL</dfn> if,
+  when <a href=#parse-a-url title="parse a url">parsed</a>, there is a character
+  immediately after the <a href=#url-scheme title=url-scheme><scheme></a>
+  component and it is a U+002F SOLIDUS character (/).</p>
+
+  <p>An <a href=#absolute-url>absolute URL</a> is an <dfn id=authority-based-url>authority-based URL</dfn>
+  if, when <a href=#parse-a-url title="parse a url">parsed</a>, there are two
+  characters immediately after the <a href=#url-scheme title=url-scheme><scheme></a> component and they are both
+  U+002F SOLIDUS characters (//).</p>
+
   <div class=impl>
 
   <p>To <dfn id=parse-a-url>parse a URL</dfn> <var title="">url</var> into its
@@ -5845,42 +5855,42 @@
      <td>The new value is not the empty string
     <tr><td><dfn id=dom-uda-host title=dom-uda-host><code>host</code></dfn>
      <td><a href=#url-hostport title=url-hostport><hostport></a>
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical and uses a server-based naming authority
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is an <a href=#authority-based-url>authority-based URL</a>
      <td>—
      <td>—
      <td>—
-     <td>The new value is not the empty string and <a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical and uses a server-based naming authority
+     <td>The new value is not the empty string and <a href=#concept-uda-input title=concept-uda-input>input</a> is an <a href=#authority-based-url>authority-based URL</a>
     <tr><td><dfn id=dom-uda-hostname title=dom-uda-hostname><code>hostname</code></dfn>
      <td><a href=#url-host title=url-host><host></a>
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical and uses a server-based naming authority
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is an <a href=#authority-based-url>authority-based URL</a>
      <td>—
      <td>—
      <td>Remove all leading U+002F SOLIDUS characters (/)
-     <td>The new value is not the empty string and <a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical and uses a server-based naming authority
+     <td>The new value is not the empty string and <a href=#concept-uda-input title=concept-uda-input>input</a> is an <a href=#authority-based-url>authority-based URL</a>
     <tr><td><dfn id=dom-uda-port title=dom-uda-port><code>port</code></dfn>
      <td><a href=#url-port title=url-port><port></a>
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical, uses a server-based naming authority, and contained a <a href=#url-port title=url-port><port></a> component (possibly an empty one)
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is an <a href=#authority-based-url>authority-based URL</a>, and contained a <a href=#url-port title=url-port><port></a> component (possibly an empty one)
      <td>—
      <td>—
      <td>Remove all characters in the new value from the first that is not in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), if any.
          Remove any leading U+0030 DIGIT ZERO characters (0) in the new value.
          If the resulting string is empty, set it to a single U+0030 DIGIT ZERO character (0).
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical and uses a server-based naming authority,
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is an <a href=#authority-based-url>authority-based URL</a>,
          and the new value, when interpretted as a base-ten integer, is less than or equal to 65535
     <tr><td><dfn id=dom-uda-pathname title=dom-uda-pathname><code>pathname</code></dfn>
      <td><a href=#url-path title=url-path><path></a>
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is a <a href=#hierarchical-url>hierarchical URL</a>
      <td>—
      <td>—
      <td>If it has no leading U+002F SOLIDUS character (/), prepend a U+002F SOLIDUS character (/) to the new value
      <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical
     <tr><td><dfn id=dom-uda-search title=dom-uda-search><code>search</code></dfn>
      <td><a href=#url-query title=url-query><query></a>
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical, and contained a <a href=#url-query title=url-query><query></a> component (possibly an empty one)
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is a <a href=#hierarchical-url>hierarchical URL</a>, and contained a <a href=#url-query title=url-query><query></a> component (possibly an empty one)
      <td>U+003F QUESTION MARK (?)
      <td>—
      <td>Remove one leading U+003F QUESTION MARK character (?), if any
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is a <a href=#hierarchical-url>hierarchical URL</a>
     <tr><td><dfn id=dom-uda-hash title=dom-uda-hash><code>hash</code></dfn>
      <td><a href=#url-fragment title=url-fragment><fragment></a>
      <td><a href=#concept-uda-input title=concept-uda-input>input</a> contained a non-empty <a href=#url-fragment title=url-fragment><fragment></a> component
@@ -55095,7 +55105,8 @@
 
     </ol><p>For the purposes of the comparisons in the above substeps, the
     <a href=#url-path title=url-path><path></a> and <a href=#url-query title=url-query><query></a> components can only be the
-    same if the URLs use a hierarchical <a href=#url-scheme title=url-scheme><scheme></a>.</p>
+    same if the URLs are both <a href=#hierarchical-url title="hierarchical
+    URL">hierarchical URLs</a>.</p>
 
    </li>
 

Modified: index
===================================================================
--- index	2010-04-04 07:03:05 UTC (rev 4964)
+++ index	2010-04-04 07:40:07 UTC (rev 4965)
@@ -5455,6 +5455,16 @@
   <span>absolute Web address</span> as defined by the Web addresses
   specification. <a href=#refsWEBADDRESSES>[WEBADDRESSES]</a></p>
 
+  <p>An <a href=#absolute-url>absolute URL</a> is a <dfn id=hierarchical-url>hierarchical URL</dfn> if,
+  when <a href=#parse-a-url title="parse a url">parsed</a>, there is a character
+  immediately after the <a href=#url-scheme title=url-scheme><scheme></a>
+  component and it is a U+002F SOLIDUS character (/).</p>
+
+  <p>An <a href=#absolute-url>absolute URL</a> is an <dfn id=authority-based-url>authority-based URL</dfn>
+  if, when <a href=#parse-a-url title="parse a url">parsed</a>, there are two
+  characters immediately after the <a href=#url-scheme title=url-scheme><scheme></a> component and they are both
+  U+002F SOLIDUS characters (//).</p>
+
   <div class=impl>
 
   <p>To <dfn id=parse-a-url>parse a URL</dfn> <var title="">url</var> into its
@@ -5743,42 +5753,42 @@
      <td>The new value is not the empty string
     <tr><td><dfn id=dom-uda-host title=dom-uda-host><code>host</code></dfn>
      <td><a href=#url-hostport title=url-hostport><hostport></a>
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical and uses a server-based naming authority
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is an <a href=#authority-based-url>authority-based URL</a>
      <td>—
      <td>—
      <td>—
-     <td>The new value is not the empty string and <a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical and uses a server-based naming authority
+     <td>The new value is not the empty string and <a href=#concept-uda-input title=concept-uda-input>input</a> is an <a href=#authority-based-url>authority-based URL</a>
     <tr><td><dfn id=dom-uda-hostname title=dom-uda-hostname><code>hostname</code></dfn>
      <td><a href=#url-host title=url-host><host></a>
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical and uses a server-based naming authority
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is an <a href=#authority-based-url>authority-based URL</a>
      <td>—
      <td>—
      <td>Remove all leading U+002F SOLIDUS characters (/)
-     <td>The new value is not the empty string and <a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical and uses a server-based naming authority
+     <td>The new value is not the empty string and <a href=#concept-uda-input title=concept-uda-input>input</a> is an <a href=#authority-based-url>authority-based URL</a>
     <tr><td><dfn id=dom-uda-port title=dom-uda-port><code>port</code></dfn>
      <td><a href=#url-port title=url-port><port></a>
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical, uses a server-based naming authority, and contained a <a href=#url-port title=url-port><port></a> component (possibly an empty one)
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is an <a href=#authority-based-url>authority-based URL</a>, and contained a <a href=#url-port title=url-port><port></a> component (possibly an empty one)
      <td>—
      <td>—
      <td>Remove all characters in the new value from the first that is not in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), if any.
          Remove any leading U+0030 DIGIT ZERO characters (0) in the new value.
          If the resulting string is empty, set it to a single U+0030 DIGIT ZERO character (0).
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical and uses a server-based naming authority,
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is an <a href=#authority-based-url>authority-based URL</a>,
          and the new value, when interpretted as a base-ten integer, is less than or equal to 65535
     <tr><td><dfn id=dom-uda-pathname title=dom-uda-pathname><code>pathname</code></dfn>
      <td><a href=#url-path title=url-path><path></a>
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is a <a href=#hierarchical-url>hierarchical URL</a>
      <td>—
      <td>—
      <td>If it has no leading U+002F SOLIDUS character (/), prepend a U+002F SOLIDUS character (/) to the new value
      <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical
     <tr><td><dfn id=dom-uda-search title=dom-uda-search><code>search</code></dfn>
      <td><a href=#url-query title=url-query><query></a>
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical, and contained a <a href=#url-query title=url-query><query></a> component (possibly an empty one)
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is a <a href=#hierarchical-url>hierarchical URL</a>, and contained a <a href=#url-query title=url-query><query></a> component (possibly an empty one)
      <td>U+003F QUESTION MARK (?)
      <td>—
      <td>Remove one leading U+003F QUESTION MARK character (?), if any
-     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical
+     <td><a href=#concept-uda-input title=concept-uda-input>input</a> is a <a href=#hierarchical-url>hierarchical URL</a>
     <tr><td><dfn id=dom-uda-hash title=dom-uda-hash><code>hash</code></dfn>
      <td><a href=#url-fragment title=url-fragment><fragment></a>
      <td><a href=#concept-uda-input title=concept-uda-input>input</a> contained a non-empty <a href=#url-fragment title=url-fragment><fragment></a> component
@@ -54996,7 +55006,8 @@
 
     </ol><p>For the purposes of the comparisons in the above substeps, the
     <a href=#url-path title=url-path><path></a> and <a href=#url-query title=url-query><query></a> components can only be the
-    same if the URLs use a hierarchical <a href=#url-scheme title=url-scheme><scheme></a>.</p>
+    same if the URLs are both <a href=#hierarchical-url title="hierarchical
+    URL">hierarchical URLs</a>.</p>
 
    </li>
 

Modified: source
===================================================================
--- source	2010-04-04 07:03:05 UTC (rev 4964)
+++ source	2010-04-04 07:40:07 UTC (rev 4965)
@@ -5020,6 +5020,17 @@
   <span>absolute Web address</span> as defined by the Web addresses
   specification. <a href="#refsWEBADDRESSES">[WEBADDRESSES]</a></p>
 
+  <p>An <span>absolute URL</span> is a <dfn>hierarchical URL</dfn> if,
+  when <span title="parse a url">parsed</span>, there is a character
+  immediately after the <span title="url-scheme"><scheme></span>
+  component and it is a U+002F SOLIDUS character (/).</p>
+
+  <p>An <span>absolute URL</span> is an <dfn>authority-based URL</dfn>
+  if, when <span title="parse a url">parsed</span>, there are two
+  characters immediately after the <span
+  title="url-scheme"><scheme></span> component and they are both
+  U+002F SOLIDUS characters (//).</p>
+
   <div class="impl">
 
   <p>To <dfn>parse a URL</dfn> <var title="">url</var> into its
@@ -5355,34 +5366,34 @@
     <tr>
      <td><dfn title="dom-uda-host"><code>host</code></dfn>
      <td><span title="url-hostport"><hostport></span>
-     <td><span title="concept-uda-input">input</span> is hierarchical and uses a server-based naming authority
+     <td><span title="concept-uda-input">input</span> is an <span>authority-based URL</span>
      <td>—
      <td>—
      <td>—
-     <td>The new value is not the empty string and <span title="concept-uda-input">input</span> is hierarchical and uses a server-based naming authority
+     <td>The new value is not the empty string and <span title="concept-uda-input">input</span> is an <span>authority-based URL</span>
     <tr>
      <td><dfn title="dom-uda-hostname"><code>hostname</code></dfn>
      <td><span title="url-host"><host></span>
-     <td><span title="concept-uda-input">input</span> is hierarchical and uses a server-based naming authority
+     <td><span title="concept-uda-input">input</span> is an <span>authority-based URL</span>
      <td>—
      <td>—
      <td>Remove all leading U+002F SOLIDUS characters (/)
-     <td>The new value is not the empty string and <span title="concept-uda-input">input</span> is hierarchical and uses a server-based naming authority
+     <td>The new value is not the empty string and <span title="concept-uda-input">input</span> is an <span>authority-based URL</span>
     <tr>
      <td><dfn title="dom-uda-port"><code>port</code></dfn>
      <td><span title="url-port"><port></span>
-     <td><span title="concept-uda-input">input</span> is hierarchical, uses a server-based naming authority, and contained a <span title="url-port"><port></span> component (possibly an empty one)
+     <td><span title="concept-uda-input">input</span> is an <span>authority-based URL</span>, and contained a <span title="url-port"><port></span> component (possibly an empty one)
      <td>—
      <td>—
      <td>Remove all characters in the new value from the first that is not in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), if any.
          Remove any leading U+0030 DIGIT ZERO characters (0) in the new value.
          If the resulting string is empty, set it to a single U+0030 DIGIT ZERO character (0).
-     <td><span title="concept-uda-input">input</span> is hierarchical and uses a server-based naming authority,
+     <td><span title="concept-uda-input">input</span> is an <span>authority-based URL</span>,
          and the new value, when interpretted as a base-ten integer, is less than or equal to 65535
     <tr>
      <td><dfn title="dom-uda-pathname"><code>pathname</code></dfn>
      <td><span title="url-path"><path></span>
-     <td><span title="concept-uda-input">input</span> is hierarchical
+     <td><span title="concept-uda-input">input</span> is a <span>hierarchical URL</span>
      <td>—
      <td>—
      <td>If it has no leading U+002F SOLIDUS character (/), prepend a U+002F SOLIDUS character (/) to the new value
@@ -5390,11 +5401,11 @@
     <tr>
      <td><dfn title="dom-uda-search"><code>search</code></dfn>
      <td><span title="url-query"><query></span>
-     <td><span title="concept-uda-input">input</span> is hierarchical, and contained a <span title="url-query"><query></span> component (possibly an empty one)
+     <td><span title="concept-uda-input">input</span> is a <span>hierarchical URL</span>, and contained a <span title="url-query"><query></span> component (possibly an empty one)
      <td>U+003F QUESTION MARK (?)
      <td>—
      <td>Remove one leading U+003F QUESTION MARK character (?), if any
-     <td><span title="concept-uda-input">input</span> is hierarchical
+     <td><span title="concept-uda-input">input</span> is a <span>hierarchical URL</span>
     <tr>
      <td><dfn title="dom-uda-hash"><code>hash</code></dfn>
      <td><span title="url-fragment"><fragment></span>
@@ -62012,8 +62023,8 @@
     <p>For the purposes of the comparisons in the above substeps, the
     <span title="url-path"><path></span> and <span
     title="url-query"><query></span> components can only be the
-    same if the URLs use a hierarchical <span
-    title="url-scheme"><scheme></span>.</p>
+    same if the URLs are both <span title="hierarchical
+    URL">hierarchical URLs</span>.</p>
 
    </li>
 




More information about the Commit-Watchers mailing list