Skip to content

Commit

Permalink
[] (0) URLify Location.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1813 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 27, 2008
1 parent b1a701b commit b8c9971
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 53 deletions.
51 changes: 20 additions & 31 deletions index
Expand Up @@ -33984,8 +33984,6 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
bubbles but is not cancelable and has no default action.
</ol>
<!-- XXX onpopstate should be defined somewhere -->
<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXURL \(url\|uri\|iri\) -->
<!-- XXXURL check with DOM3 Events -->

<pre
class=idl>interface <dfn id=popstateevent>PopStateEvent</dfn> : Event {
Expand Down Expand Up @@ -34039,8 +34037,7 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
void <a href="#replace" title=dom-location-replace>replace</a>(in DOMString url);
void <span title=dom-location-reload>reload</span>();

<!-- XXXURL change to URL
--> // <span>URI decomposition attributes</span> <!-- blame brendan for these "innovative" names -->
// <a href="#url-decomposition">URL decomposition attributes</a> <!-- blame brendan for these "innovative" names -->
attribute DOMString <a href="#protocol0" title=dom-location-protocol>protocol</a>;
attribute DOMString <a href="#host0" title=dom-location-host>host</a>;
attribute DOMString <a href="#hostname0" title=dom-location-hostname>hostname</a>;
Expand All @@ -34049,11 +34046,11 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
attribute DOMString <a href="#search0" title=dom-location-search>search</a>;
attribute DOMString <a href="#hash0" title=dom-location-hash>hash</a>;
};</pre>
<!-- XXXURL change to URL -->

<p>The <dfn id=href5 title=dom-location-href><code>href</code></dfn>
attribute returns the address of the page represented by the associated
<code>Document</code> object, as an absolute URI or IRI reference.
attribute must return <span title="the document's address">the
address</span><!-- XXXDOCURL --> of the page represented by the associated
<code>Document</code> object, as an <a href="#absolute">absolute URL</a>.

<p>On setting, <!--XXX Mozilla does this, but IE doesn't. What
should we do?: the behavior depends on the context in which the
Expand Down Expand Up @@ -34089,36 +34086,27 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
href="#assign">assign()</a></code> and <code title=dom-location-replace><a
href="#replace">replace()</a></code> methods must be done with the <a
href="#script3">script browsing context</a> of the script that invoked the
method as the <a href="#source0">source browsing context</a>.</p>
<!-- XXXURL algorithms -->

<p>Relative <var title="">url</var> arguments for <code
title=dom-location-assign><a href="#assign">assign()</a></code> and <code
title=dom-location-replace><a href="#replace">replace()</a></code> must be
resolved relative to the <span title="script's base URI">base URI of the
script</span> that made the method call.</p>
<!-- XXX what about if
the base URI is data: or javascript: or about: or something else
without a way to resolve base URIs? -->
<!-- XXXURL change to URL -->
method as the <a href="#source0">source browsing context</a>.

<p>The <code><a href="#location2">Location</a></code> interface also has
the complement of <span>URI decomposition attributes</span>, <dfn
id=protocol0 title=dom-location-protocol><code>protocol</code></dfn>, <dfn
id=host0 title=dom-location-host><code>host</code></dfn>, <dfn id=port0
the complement of <a href="#url-decomposition">URL decomposition
attributes</a>, <dfn id=protocol0
title=dom-location-protocol><code>protocol</code></dfn>, <dfn id=host0
title=dom-location-host><code>host</code></dfn>, <dfn id=port0
title=dom-location-port><code>port</code></dfn>, <dfn id=hostname0
title=dom-location-hostname><code>hostname</code></dfn>, <dfn id=pathname0
title=dom-location-pathname><code>pathname</code></dfn>, <dfn id=search0
title=dom-location-search><code>search</code></dfn>, and <dfn id=hash0
title=dom-location-hash><code>hash</code></dfn>. These must follow the
rules given for URI decomposition attributes, with the <a href="#input"
title=concept-uda-input>input</a> being the address of the page
represented by the associated <code>Document</code> object, as an absolute
URI or IRI reference (same as the <code title=dom-location-href><a
href="#href5">href</a></code> attribute), and the <a href="#common3"
title=concept-uda-setter>common setter action</a> being the same as
setting the <code title=dom-location-href><a href="#href5">href</a></code>
attribute to the new output value.</p>
rules given for URL decomposition attributes, with the <a href="#input"
title=concept-uda-input>input</a> being <span title="the document's
address">the address</span><!-- XXXDOCURL --> of the page represented by
the associated <code>Document</code> object, as an <a
href="#absolute">absolute URL</a> (same as the <code
title=dom-location-href><a href="#href5">href</a></code> attribute), and
the <a href="#common3" title=concept-uda-setter>common setter action</a>
being the same as setting the <code title=dom-location-href><a
href="#href5">href</a></code> attribute to the new output value.</p>
<!--
<dfn title="dom-location-reload"><code>reload()</code></dfn>
reload during resize event:
Expand Down Expand Up @@ -34191,7 +34179,8 @@ user reload must be equivalent to .reload()
<p>In addition, a user agent could ignore calls to <code
title=dom-history-pushState><a href="#pushstate">pushState()</a></code>
that are invoked on a timer, or from event handlers that do not represent
a clear user action, or that are invoked in rapid succession.
a clear user action, or that are invoked in rapid succession.</p>
<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXURL \(url\|uri\|iri\) -->

<h3 id=browsing0><span class=secno>5.9 </span>Browsing the Web</h3>

Expand Down
33 changes: 11 additions & 22 deletions source
Expand Up @@ -31668,9 +31668,7 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t

<!-- XXX onpopstate should be defined somewhere -->

<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXURL \(url\|uri\|iri\) -->

<!-- XXXURL check with DOM3 Events -->
<pre class="idl">interface <dfn>PopStateEvent</dfn> : Event {
readonly attribute DOMObject <span title="dom-PopStateEvent-state">state</span>;
void <span title="dom-PopStateEvent-initPopStateEvent">initPopStateEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in DOMObject stateArg);
Expand Down Expand Up @@ -31722,8 +31720,7 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
void <span title="dom-location-replace">replace</span>(in DOMString url);
void <span title="dom-location-reload">reload</span>();

<!-- XXXURL change to URL
--> // <span>URI 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>;
Expand All @@ -31733,11 +31730,11 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
attribute DOMString <span title="dom-location-hash">hash</span>;
};</pre>

<!-- XXXURL change to URL -->
<p>The <dfn title="dom-location-href"><code>href</code></dfn>
attribute returns the address of the page represented by the
associated <code>Document</code> object, as an absolute URI or IRI
reference.</p>
attribute must return <span title="the document's address">the
address</span><!-- XXXDOCURL --> of the page represented by the
associated <code>Document</code> object, as an <span>absolute
URL</span>.</p>

<p>On setting, <!--XXX Mozilla does this, but IE doesn't. What
should we do?: the behavior depends on the context in which the
Expand Down Expand Up @@ -31772,29 +31769,20 @@ JSURL: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t
with the <span>script browsing context</span> of the script that
invoked the method as the <span>source browsing context</span>.</p>

<!-- XXXURL algorithms -->
<p>Relative <var title="">url</var> arguments for <code
title="dom-location-assign">assign()</code> and <code
title="dom-location-replace">replace()</code> must be resolved
relative to the <span title="script's base URI">base URI of the
script</span> that made the method call.</p> <!-- XXX what about if
the base URI is data: or javascript: or about: or something else
without a way to resolve base URIs? -->

<!-- XXXURL change to URL -->
<p>The <code>Location</code> interface also has the complement of
<span>URI decomposition attributes</span>, <dfn
<span>URL decomposition attributes</span>, <dfn
title="dom-location-protocol"><code>protocol</code></dfn>, <dfn
title="dom-location-host"><code>host</code></dfn>, <dfn
title="dom-location-port"><code>port</code></dfn>, <dfn
title="dom-location-hostname"><code>hostname</code></dfn>, <dfn
title="dom-location-pathname"><code>pathname</code></dfn>, <dfn
title="dom-location-search"><code>search</code></dfn>, and <dfn
title="dom-location-hash"><code>hash</code></dfn>. These must follow
the rules given for URI decomposition attributes, with the <span
title="concept-uda-input">input</span> being the address of the page
the rules given for URL decomposition attributes, with the <span
title="concept-uda-input">input</span> being <span title="the
document's address">the address</span><!-- XXXDOCURL --> of the page
represented by the associated <code>Document</code> object, as an
absolute URI or IRI reference (same as the <code
<span>absolute URL</span> (same as the <code
title="dom-location-href">href</code> attribute), and the <span
title="concept-uda-setter">common setter action</span> being the
same as setting the <code title="dom-location-href">href</code>
Expand Down Expand Up @@ -31872,6 +31860,7 @@ user reload must be equivalent to .reload()
action, or that are invoked in rapid succession.</p>


<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXURL \(url\|uri\|iri\) -->

<h3>Browsing the Web</h3>

Expand Down

0 comments on commit b8c9971

Please sign in to comment.