Skip to content

Commit

Permalink
[] (0) remaining URLification
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1816 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 27, 2008
1 parent 27b2fc2 commit 0f17117
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 126 deletions.
120 changes: 54 additions & 66 deletions index
Expand Up @@ -39996,8 +39996,7 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
providing a tree-based approach to document state). Such UI models should
be based upon the single <a href="#undo-transaction">undo transaction
history</a> described in this section, however, such that to a script
there is no detectable difference.</p>
<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXURL \(url\|uri\|iri\) -->
there is no detectable difference.

<h3 id=command><span class=secno>6.10 </span>Command APIs</h3>

Expand Down Expand Up @@ -40089,8 +40088,7 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr

<dd><strong>Value:</strong> The string "<code title="">true</code>" if the
expression given for the "State" above is true, the string "<code
title="">false</code>" otherwise.</dd>
<!-- XXXURL change to URL -->
title="">false</code>" otherwise.

<dt><dfn id=createlink
title=command-createLink><code>createLink</code></dfn>
Expand All @@ -40104,8 +40102,8 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
existing <code><a href="#a">a</a></code> element, then if the <var
title="">showUI</var> argument is present and has the value false, then
the value of the <var title="">value</var> argument must be used as the
URI of the link. Otherwise, the user should be prompted for the URI of
the link.
<a href="#url">URL</a> of the link. Otherwise, the user should be
prompted for the URL of the link.

<dd><strong>Enabled When:</strong> The document is <a href="#ready">ready
for editing host commands</a>.
Expand Down Expand Up @@ -40196,8 +40194,7 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
<dd><strong>State:</strong> Always false.

<dd><strong>Value:</strong> Always the string "<code
title="">false</code>".</dd>
<!-- XXXURL change to URL -->
title="">false</code>".

<dt><dfn id=insertimage
title=command-insertImage><code>insertImage</code></dfn>
Expand All @@ -40211,8 +40208,8 @@ http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSPr
an existing <code><a href="#img">img</a></code> element, then if the <var
title="">showUI</var> argument is present and has the value false, then
the value of the <var title="">value</var> argument must be used as the
URI of the image. Otherwise, the user should be prompted for the URI of
the image.
<a href="#url">URL</a> of the image. Otherwise, the user should be
prompted for the URL of the image.

<dd><strong>Enabled When:</strong> The document is <a href="#ready">ready
for editing host commands</a>.
Expand Down Expand Up @@ -40608,42 +40605,42 @@ XXX Once we resolve the style="" issue, address these:
void <a href="#addeventsource" title=dom-RemoteEventTarget-addEventSource>addEventSource</a>(in DOMString src);
void <a href="#removeeventsource" title=dom-RemoteEventTarget-removeEventSource>removeEventSource</a>(in DOMString src);
};</pre>
<!-- XXXURL change to URL; algorithms? -->

<p>When the <dfn id=addeventsource
title=dom-RemoteEventTarget-addEventSource><code>addEventSource(<var
title="">src</var>)</code></dfn> method is invoked, the user agent must
add the URI specified in <var title="">src</var> to the <a
title="">src</var>)</code></dfn> method is invoked, the user agent must <a
href="#resolve" title="resolve a url">resolve</a> the <a
href="#url">URL</a> specified in <var title="">src</var>, and if that
succeeds, add the resulting <a href="#absolute">absolute URL</a> to the <a
href="#list-of3" title=concept-event-source-list>list of event sources</a>
for that object. The same URI can be registered multiple times.</p>
<!-- XXXURL change to URL -->
for that object. The same URL can be registered multiple times. If the URL
fails to resolve, then the user agent must raise a <code>SYNTAX_ERR</code>
exception.

<p>When the <dfn id=removeeventsource
title=dom-RemoteEventTarget-removeEventSource><code>removeEventSource(<var
title="">src</var>)</code></dfn> method is invoked, the user agent must
remove the URI specified in <var title="">src</var> from the <a
href="#list-of3" title=concept-event-source-list>list of event sources</a>
for that object. If the same URI has been registered multiple times,
removing it must remove only one instance of that URI for each invocation
of the <code title=removeEventSource>removeEventSource()</code> method.</p>
<!-- XXXURL algorithms -->

<p>Relative URIs must be resolved relative to <span
class=big-issue>...</span>.
title="">src</var>)</code></dfn> method is invoked, the user agent must <a
href="#resolve" title="resolve a url">resolve</a> the <a
href="#url">URL</a> specified in <var title="">src</var>, and if that
succeeds, remove the resulting <a href="#absolute">absolute URL</a> from
the <a href="#list-of3" title=concept-event-source-list>list of event
sources</a> for that object. If the same URI has been registered multiple
times, removing it must remove only one instance of that URI for each
invocation of the <code title=removeEventSource>removeEventSource()</code>
method. If the URL fails to resolve, the user agent does nothing.

<h4 id=connecting><span class=secno>7.2.2 </span>Connecting to an event
stream</h4>

<p>Each object implementing the <code>EventTarget</code> and <code><a
href="#remoteeventtarget0">RemoteEventTarget</a></code> interfaces has a
<dfn id=list-of3 title=concept-event-source-list>list of event
sources</dfn> that are registered for that object.</p>
<!-- XXXURL change to URL; algorithms for 'fetch'? -->
sources</dfn> that are registered for that object.

<p>When a new URI is added to this list, the user agent should, as soon as
all currently executing scripts (if any) have finished executing, and if
the specified URI isn't removed from the list before they do so, fetch the
resource identified by that URI.
all currently executing scripts (if any) have finished
executing<!-- XXX queue -->, and if the specified URL isn't removed from
the list before they do so, fetch the resource identified by that URL.

<p>When an event source is removed from the list of event sources for an
object, if that resource is still being fetched, then the relevant
Expand All @@ -40668,10 +40665,9 @@ XXX Once we resolve the style="" issue, address these:
<li>The <dfn id=last-event title=concept-event-stream-last-event-id>last
event ID string</dfn>. This must initially be the empty string.
</ul>
<!-- XXXURL change to URL -->

<p>In general, the semantics of the transport protocol specified by the
URIs for the event sources must be followed, including HTTP caching rules.
URLs for the event sources must be followed, including HTTP caching rules.

<p>For HTTP connections, the <code title="">Accept</code> header may be
included; if included, it must contain only formats of event framing that
Expand Down Expand Up @@ -40737,21 +40733,19 @@ XXX Once we resolve the style="" issue, address these:
<p>HTTP 300 Multiple Choices responses should be handled automatically if
possible (treating the responses as if they were 302 Found responses
pointing to the appropriate resource), and otherwise must be treated as
HTTP 404 responses.</p>
<!-- XXXURL change to URL -->
HTTP 404 responses.

<p>HTTP 301 Moved Permanently responses must cause the user agent to
reconnect using the new server specified URI instead of the previously
specified URI for all subsequent requests for this event source. (It
doesn't affect other event sources with the same URI unless they also
reconnect using the new server specified URL instead of the previously
specified URL for all subsequent requests for this event source. (It
doesn't affect other event sources with the same URL unless they also
receive 301 responses, and it doesn't affect future sessions, e.g. if the
page is reloaded.)</p>
<!-- XXXURL change to URL -->
page is reloaded.)

<p>HTTP 302 Found, 303 See Other, and 307 Temporary Redirect responses must
cause the user agent to connect to the new server-specified URI, but if
cause the user agent to connect to the new server-specified URL, but if
the user agent needs to again request the resource at a later point, it
must return to the previously specified URI for this event source.
must return to the previously specified URL for this event source.

<p>HTTP 304 Not Modified responses should be handled like HTTP 200 OK
responses, with the content coming from the user agent cache. A new
Expand Down Expand Up @@ -40928,8 +40922,6 @@ XXX Once we resolve the style="" issue, address these:
href="http://www.w3.org/TR/REC-xml-names/#NT-NCName">NCName</a>, set the
<var title="">data</var> buffer and the <var title="">event name</var>
buffer to the empty string and abort these steps.
</li>
<!-- XXXURL change to URL -->

<li>
<p>Otherwise, create an event that uses the <code><a
Expand All @@ -40940,7 +40932,7 @@ XXX Once we resolve the style="" issue, address these:
attribute must be set to the value of the <var title="">data</var>
buffer, the <code title=dom-MessageEvent-origin><a
href="#origin1">origin</a></code> attribute must be set to the <a
href="#origin0">origin</a> of the event stream's URI, the <code
href="#origin0">origin</a> of the event stream's URL, the <code
title=dom-MessageEvent-lastEventId><a
href="#lasteventid">lastEventId</a></code> attribute must be set to the
<span>last event ID string</span> of the event source, and the <code
Expand Down Expand Up @@ -41053,16 +41045,15 @@ data:&nbsp;test</pre>
<p>Legacy proxy servers are known to, in certain cases, drop HTTP
connections after a short timeout. To protect against such proxy servers,
authors can include a comment line (one starting with a ':' character)
every 15 seconds or so.</p>
<!-- XXXURL change to URL -->
every 15 seconds or so.

<p>Authors wishing to relate event source connections to each other or to
specific documents previously served might find that relying on IP
addresses doesn't work, as individual clients can have multiple IP
addresses (due to having multiple proxy servers) and individual IP
addresses can have multiple clients (due to sharing a proxy server). It is
better to include a unique identifier in the document when it is served
and then pass that identifier as part of the URI in the <code
and then pass that identifier as part of the URL in the <code
title=attr-event-source-src><a href="#src11">src</a></code> attribute of
the <code><a href="#event-source">event-source</a></code> element.

Expand Down Expand Up @@ -41938,8 +41929,9 @@ data:&nbsp;test</pre>

<ol>
<li>
<p>If the value of the <var title="">targetOrigin</var> argument is
neither a single U+002A ASTERISK character ("*") nor a valid URI or IRI,
<p>If the value of the <var title="">targetOrigin</var> argument is not a
single U+002A ASTERISK character ("*"), and <a href="#parse0"
title="parse a url">parsing</a> it as a <a href="#url">URL</a> fails,
then throw a <code>SYNTAX_ERR</code> exception and abort the overall set
of steps. <a href="#refsRFC3490">[RFC3986]</a> <a
href="#refsRFC3490">[RFC3987]</a></p>
Expand Down Expand Up @@ -46682,21 +46674,18 @@ function receiver(e) {
href="#html-namespace0">HTML namespace</a>. Append it to the
<code>Document</code> object. Put this element in the <a
href="#stack">stack of open elements</a>.</p>
<!-- XXXURL change to URL; algorithms (with care) -->
<p id=parser-appcache>If the token has an attribute "manifest", then run
the <a href="#application2"

<p id=parser-appcache>If the token has an attribute "manifest", then <a
href="#resolve" title="resolve a url">resolve</a> the value of that
attribute to an <a href="#absolute">absolute URL</a>, and if that is
successful, run the <a href="#application2"
title=concept-appcache-init-with-attribute>application cache selection
algorithm</a> with the value of that attribute as the manifest URI,
resolving relative URIs according to section 5.1 of RFC3986 as if there
was no base URI embedded in content (i.e. relative to the base URI from
the encapsulating entity or the URI used to retrieve the entity).
Otherwise, run the <a href="#application3"
algorithm</a> with the resulting <a href="#absolute">absolute URL</a>.
Otherwise, if there is no such attribute or resolving it fails, run the
<a href="#application3"
title=concept-appcache-init-no-attribute>application cache selection
algorithm</a> with no manifest. <a href="#refsRFC3986">[RFC3986]</a></p>
<!-- XXXURL when dealing with
microsyntaxes-urls, hoist all this into that section so we can get
rid of "URI" here -->


<p>Switch the <span>insertion mode</span> to "<a href="#before5"
title="insertion mode: before head">before head</a>".</p>

Expand Down Expand Up @@ -52768,7 +52757,6 @@ better state serialisation for going back/forward

some sort of markup to tell google _not_ to index a particular part of the site

drop down menu with URIs to replace the silly <select> hacks.

http://www.cs.tut.fi/~jkorpela/html/em.html

Expand Down Expand Up @@ -52982,7 +52970,7 @@ http://www.activewidgets.com/grid/


<h2>Tree and List Widgets</h2>
click item to go uri
click item to go url
doube click to submit form with value
sort list by any column
specify column headers, column sort types
Expand Down Expand Up @@ -53205,7 +53193,7 @@ ability for a web app to save a file to the local disk:
file.read();
var file = window.saveAsFile(); // throws up UI
file.write();
...or something? Or use data: URIs and right-click-to-save?
...or something? Or use data: URLs and right-click-to-save?

http://lxr.mozilla.org/mozilla/source/dom/public/idl/html/nsIDOMNSHTMLDocument.idl

Expand Down Expand Up @@ -53404,7 +53392,7 @@ but that in between scripts it should be compliant.

how to handle 205 reset content responses and other HTTP codes in
response to link clicks, link clicks with target="" attributes,
window.open(), the user typing a URI in the URL bar, etc.
window.open(), the user typing a URL in the URL bar, etc.

XXX Native code for fast sorting of many data?

Expand Down Expand Up @@ -53925,7 +53913,7 @@ screen contains top left width height pixelDepth colorDepth availWidth availHeig

<dt><dfn title="attr-command-icon"><code>icon</code></dfn></dt>

<dd>A URI to the command's Icon. If the attribute is not specified,
<dd>A URL to the command's Icon. If the attribute is not specified,
then the command has no Icon.</dd>

<dt><dfn title="attr-command-onclick"><code>onclick</code></dfn></dt>
Expand Down

0 comments on commit 0f17117

Please sign in to comment.