Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (2) Make location.port parsing more like IE8's.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8236

git-svn-id: http://svn.whatwg.org/webapps@4471 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 5, 2010
1 parent e4ed2d9 commit c0ce245
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions complete.html
Expand Up @@ -5009,9 +5009,11 @@ <h4 id=interfaces-for-url-manipulation><span class=secno>2.5.3 </span>Interfaces
<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>&lt;port&gt;</a> 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 (0) to U+0039 DIGIT NINE (9).
<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 hierarchical and uses a server-based naming authority,
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>&lt;path&gt;</a>
<td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical
Expand Down
6 changes: 4 additions & 2 deletions index
Expand Up @@ -4844,9 +4844,11 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<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>&lt;port&gt;</a> 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 (0) to U+0039 DIGIT NINE (9).
<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 hierarchical and uses a server-based naming authority,
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>&lt;path&gt;</a>
<td><a href=#concept-uda-input title=concept-uda-input>input</a> is hierarchical
Expand Down
6 changes: 4 additions & 2 deletions source
Expand Up @@ -4469,9 +4469,11 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<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 (0) to U+0039 DIGIT NINE (9).
<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 hierarchical and uses a server-based naming authority,
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">&lt;path&gt;</span>
Expand Down

0 comments on commit c0ce245

Please sign in to comment.