[html5] r1826 - [gow] (2) Bring URL decomposition DOM attributes more into line with IE.

whatwg at whatwg.org whatwg at whatwg.org
Sun Jun 29 02:41:01 PDT 2008


Author: ianh
Date: 2008-06-29 02:41:00 -0700 (Sun, 29 Jun 2008)
New Revision: 1826

Modified:
   index
   source
Log:
[gow] (2) Bring URL decomposition DOM attributes more into line with IE.

Modified: index
===================================================================
--- index	2008-06-28 09:01:48 UTC (rev 1825)
+++ index	2008-06-29 09:41:00 UTC (rev 1826)
@@ -25,7 +25,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 28 June
+   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 29 June
     2008</h2>
 
    <p>You can take part in this work. <a
@@ -3239,8 +3239,10 @@
 
      <td><a href="#ltportgt" title=url-port><port></a>
 
-     <td><a href="#input" title=concept-uda-input>input</a> is hierarchical
-      and uses a server-based naming authority
+     <td><a href="#input" title=concept-uda-input>input</a> is hierarchical,
+      uses a server-based naming authority, and contained a <a
+      href="#ltportgt" title=url-port><port></a> component (possibly an
+      empty one)
 
      <td>—
 
@@ -3274,7 +3276,9 @@
 
      <td><a href="#ltquerygt" title=url-query><query></a>
 
-     <td><a href="#input" title=concept-uda-input>input</a> is hierarchical
+     <td><a href="#input" title=concept-uda-input>input</a> is hierarchical,
+      and contained a <a href="#ltquerygt" title=url-query><query></a>
+      component (possibly an empty one)
 
      <td>U+003F QUESTION MARK ("<code title="">?</code>")
 
@@ -3290,7 +3294,9 @@
 
      <td><a href="#ltfragmentgt" title=url-fragment><fragment></a>
 
-     <td>Fragment identifier is longer than zero characters
+     <td><a href="#input" title=concept-uda-input>input</a> contained a <a
+      href="#ltfragmentgt" title=url-fragment><fragment></a> component
+      (possibly an empty one)
 
      <td>U+0023 NUMBER SIGN ("<code title="">#</code>")
 
@@ -3307,6 +3313,58 @@
   http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/ref_h-l.htm#84722
 -->
 
+  <div class=example>
+   <p>The table below demonstrates how the getter condition for <code
+    title=dom-uda-search><a href="#search">search</a></code> results in
+    different results depending on the exact original syntax of the URL:</p>
+
+   <table>
+    <thead>
+     <tr>
+      <th> Input URL
+
+      <th> <code title=dom-uda-search><a href="#search">search</a></code>
+       value
+
+      <th> Explanation
+
+    <tbody>
+     <tr>
+      <td> <code title="">http://example.com/</code>
+
+      <td> <i>empty string</i>
+
+      <td> No <a href="#ltquerygt" title=url-query><query></a>
+       component in input URL.
+
+     <tr>
+      <td> <code title="">http://example.com/?</code>
+
+      <td> <code title="">?</code>
+
+      <td> There is a <a href="#ltquerygt" title=url-query><query></a>
+       component, but it is empty. The question mark in the resulting value
+       is the prefix.
+
+     <tr>
+      <td> <code title="">http://example.com/?test</code>
+
+      <td> <code title="">?test</code>
+
+      <td> The <a href="#ltquerygt" title=url-query><query></a>
+       component has the value "<code title="">test</code>".
+
+     <tr>
+      <td> <code title="">http://example.com/?test#</code>
+
+      <td> <code title="">?test</code>
+
+      <td> The (empty) <a href="#ltfragmentgt"
+       title=url-fragment><fragment></a> component is not part of the
+       <a href="#ltquerygt" title=url-query><query></a> component.
+   </table>
+  </div>
+
   <h3 id=common0><span class=secno>2.4 </span>Common microsyntaxes</h3>
 
   <p>There are various places in HTML that accept particular data types, such
@@ -34379,7 +34437,7 @@
      reading the file from disk, or executing script in the case of a <a
      href="#the-javascript" title="javascript protocol"><code
      title="">javascript:</code> URL</a>). If this results in a redirect,
-     return to <a href=navigate-fragid-step>the step labeled "fragment
+     return to <a href="#navigate-fragid-step">the step labeled "fragment
      identifiers"</a> with the new resource.</p>
 
     <p class=example>For example, imagine an HTML page with an associated
@@ -34863,9 +34921,9 @@
    indicated part of the document</a> is brought to the user's attention. If
    there is no indicated part, then the user agent must not scroll anywhere.
 
-  <p>The <dfn id=the-indicated>the indicated part of the document</dfn> is
-   the one that the fragment identifier, if any, identifies. The semantics of
-   the fragment identifier in terms of mapping it to a specific DOM Node is
+  <p><dfn id=the-indicated>The indicated part of the document</dfn> is the
+   one that the fragment identifier, if any, identifies. The semantics of the
+   fragment identifier in terms of mapping it to a specific DOM Node is
    defined by the MIME type specification of the document's MIME Type (for
    example, the processing of fragment identifiers for XML MIME types is the
    responsibility of RFC3023).

Modified: source
===================================================================
--- source	2008-06-28 09:01:48 UTC (rev 1825)
+++ source	2008-06-29 09:41:00 UTC (rev 1826)
@@ -1510,7 +1510,7 @@
     <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 and uses a server-based naming authority
+     <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>—
      <td>—
      <td>Remove any characters in the new value that are not in the range U+0030 DIGIT ZERO .. U+0039 DIGIT NINE.
@@ -1527,7 +1527,7 @@
     <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
+     <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>U+003F QUESTION MARK ("<code title="">?</code>")
      <td>—
      <td>Remove one leading U+003F QUESTION MARK ("<code title="">?</code>") character, if any
@@ -1535,7 +1535,7 @@
     <tr>
      <td><dfn title="dom-uda-hash"><code>hash</code></dfn>
      <td><span title="url-fragment"><fragment></span>
-     <td>Fragment identifier is longer than zero characters
+     <td><span title="concept-uda-input">input</span> contained a <span title="url-fragment"><fragment></span> component (possibly an empty one)
      <td>U+0023 NUMBER SIGN ("<code title="">#</code>")
      <td>—
      <td>Remove one leading U+0023 NUMBER SIGN ("<code title="">#</code>") character, if any
@@ -1548,9 +1548,41 @@
   http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/ref_h-l.htm#84722
 -->
 
+  <div class="example">
 
+   <p>The table below demonstrates how the getter condition for <code
+   title="dom-uda-search">search</code> results in different results
+   depending on the exact original syntax of the URL:</p>
 
+   <table>
+    <thead>
+     <tr>
+      <th> Input URL
+      <th> <code title="dom-uda-search">search</code> value
+      <th> Explanation
+    <tbody>
+     <tr>
+      <td> <code title="">http://example.com/</code>
+      <td> <i>empty string</i>
+      <td> No <span title="url-query"><query></span> component in input URL.
+     <tr>
+      <td> <code title="">http://example.com/?</code>
+      <td> <code title="">?</code>
+      <td> There is a <span title="url-query"><query></span> component, but it is empty. The question mark in the resulting value is the prefix.
+     <tr>
+      <td> <code title="">http://example.com/?test</code>
+      <td> <code title="">?test</code>
+      <td> The <span title="url-query"><query></span> component has the value "<code title="">test</code>".
+     <tr>
+      <td> <code title="">http://example.com/?test#</code>
+      <td> <code title="">?test</code>
+      <td> The (empty) <span title="url-fragment"><fragment></span> component is not part of the <span title="url-query"><query></span> component.
+   </table>
 
+  </div>
+
+
+
   <h3>Common microsyntaxes</h3>
 
   <p>There are various places in HTML that accept particular data
@@ -32044,7 +32076,7 @@
     operation, or reading the file from disk, or executing script in
     the case of a <span title="javascript protocol"><code
     title="">javascript:</code> URL</span>). If this results in a
-    redirect, return to <a href="navigate-fragid-step">the step
+    redirect, return to <a href="#navigate-fragid-step">the step
     labeled "fragment identifiers"</a> with the new resource.</p>
 
     <p class="example">For example, imagine an HTML page with an
@@ -32549,7 +32581,7 @@
   attention. If there is no indicated part, then the user agent must
   not scroll anywhere.</p>
 
-  <p>The <dfn>the indicated part of the document</dfn> is the one that
+  <p><dfn>The indicated part of the document</dfn> is the one that
   the fragment identifier, if any, identifies. The semantics of the
   fragment identifier in terms of mapping it to a specific DOM Node is
   defined by the MIME type specification of the document's MIME Type




More information about the Commit-Watchers mailing list