Skip to content

Commit

Permalink
[gow] (2) Bring URL decomposition DOM attributes more into line with IE.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1826 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 29, 2008
1 parent c069c76 commit 09bab12
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 14 deletions.
76 changes: 67 additions & 9 deletions index
Expand Up @@ -25,7 +25,7 @@

<h1 id=html-5>HTML 5</h1>

<h2 class="no-num no-toc" id=draft>Draft Recommendation &mdash; 28 June
<h2 class="no-num no-toc" id=draft>Draft Recommendation &mdash; 29 June
2008</h2>

<p>You can take part in this work. <a
Expand Down Expand Up @@ -3239,8 +3239,10 @@

<td><a href="#ltportgt" title=url-port>&lt;port&gt;</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>&lt;port&gt;</a> component (possibly an
empty one)

<td>&mdash;

Expand Down Expand Up @@ -3274,7 +3276,9 @@

<td><a href="#ltquerygt" title=url-query>&lt;query&gt;</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>&lt;query&gt;</a>
component (possibly an empty one)

<td>U+003F QUESTION MARK ("<code title="">?</code>")

Expand All @@ -3290,7 +3294,9 @@

<td><a href="#ltfragmentgt" title=url-fragment>&lt;fragment&gt;</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>&lt;fragment&gt;</a> component
(possibly an empty one)

<td>U+0023 NUMBER SIGN ("<code title="">#</code>")

Expand All @@ -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>&lt;query&gt;</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>&lt;query&gt;</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>&lt;query&gt;</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>&lt;fragment&gt;</a> component is not part of the
<a href="#ltquerygt" title=url-query>&lt;query&gt;</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
Expand Down Expand Up @@ -34379,7 +34437,7 @@ user reload must be equivalent to .reload()
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
Expand Down Expand Up @@ -34863,9 +34921,9 @@ user reload must be equivalent to .reload()
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).
Expand Down
42 changes: 37 additions & 5 deletions source
Expand Up @@ -1510,7 +1510,7 @@
<tr>
<td><dfn title="dom-uda-port"><code>port</code></dfn>
<td><span title="url-port">&lt;port&gt;</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">&lt;port&gt;</span> component (possibly an empty one)
<td>&mdash;
<td>&mdash;
<td>Remove any characters in the new value that are not in the range U+0030 DIGIT ZERO .. U+0039 DIGIT NINE.
Expand All @@ -1527,15 +1527,15 @@
<tr>
<td><dfn title="dom-uda-search"><code>search</code></dfn>
<td><span title="url-query">&lt;query&gt;</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">&lt;query&gt;</span> component (possibly an empty one)
<td>U+003F QUESTION MARK ("<code title="">?</code>")
<td>&mdash;
<td>Remove one leading U+003F QUESTION MARK ("<code title="">?</code>") character, if any
<td>&mdash;
<tr>
<td><dfn title="dom-uda-hash"><code>hash</code></dfn>
<td><span title="url-fragment">&lt;fragment&gt;</span>
<td>Fragment identifier is longer than zero characters
<td><span title="concept-uda-input">input</span> contained a <span title="url-fragment">&lt;fragment&gt;</span> component (possibly an empty one)
<td>U+0023 NUMBER SIGN ("<code title="">#</code>")
<td>&mdash;
<td>Remove one leading U+0023 NUMBER SIGN ("<code title="">#</code>") character, if any
Expand All @@ -1548,6 +1548,38 @@
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">&lt;query&gt;</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">&lt;query&gt;</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">&lt;query&gt;</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">&lt;fragment&gt;</span> component is not part of the <span title="url-query">&lt;query&gt;</span> component.
</table>

</div>



Expand Down Expand Up @@ -32044,7 +32076,7 @@ user reload must be equivalent to .reload()
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
Expand Down Expand Up @@ -32549,7 +32581,7 @@ user reload must be equivalent to .reload()
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
Expand Down

0 comments on commit 09bab12

Please sign in to comment.