- From: poot <cvsmail@w3.org>
- Date: Mon, 14 Jul 2008 19:06:57 +0900 (JST)
- To: public-html-diffs@w3.org
Define the Pipe constructor; do other maintenance work around
constructors. (whatwg r1867) (changed by: Ian Hickson)
Diffs for this change per section:
end1
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#end1
end2
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#end2
8. The HTML syntax
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#syntax
7.5 Pipe messaging
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#pipe-messaging
Resolve the URL url.
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#ws-ua-1
8.2.5.5. The "before html" insertion mode
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#the-before
Pipe messaging
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#pipe-messaging0
create a new PipeEnd object
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#create
create an element for a token
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#create0
URL
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#url2
7.3.2 The WebSocket interface
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#the-websocket
insert an HTML element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#insert0
insert a foreign element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#insert1
8.2.5.1. Creating and inserting elements
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#creating
Headers processing: If there is not exactly one entry in the headers list whose name is "websocket-origin", or if there is not exactly one entry in the headers list whose name is "websocket-location", or if there are any entries in the headers list whose names are the empty string, then fail the Web Socket connection and abort these steps.
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#ws-ua-headers-processing
A start tag whose tag name is "script"
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#scriptTag
Option(in DOMString name, in DOMString value)
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#optionin0
WebSocket(url)
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#websocket1
WebSocket
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#websocket0
entangle
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#entangle
5.2.3 APIs for creating and navigating browsing contexts by name
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#apis-for
A start tag whose tag name is "isindex"
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#isindex
Pipe
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#pipe
generic RCDATA parsing algorithm
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#generic0
Pipe()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#pipe0
PipeEnd
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1056.html#pipeend0
Current content per affected section:
http://dev.w3.org/html5/spec/Overview.html#end1
http://dev.w3.org/html5/spec/Overview.html#end2
http://dev.w3.org/html5/spec/Overview.html#syntax
http://dev.w3.org/html5/spec/Overview.html#pipe-messaging
http://dev.w3.org/html5/spec/Overview.html#ws-ua-1
http://dev.w3.org/html5/spec/Overview.html#the-before
http://dev.w3.org/html5/spec/Overview.html#pipe-messaging0
http://dev.w3.org/html5/spec/Overview.html#create
http://dev.w3.org/html5/spec/Overview.html#create0
http://dev.w3.org/html5/spec/Overview.html#url2
http://dev.w3.org/html5/spec/Overview.html#the-websocket
http://dev.w3.org/html5/spec/Overview.html#insert0
http://dev.w3.org/html5/spec/Overview.html#insert1
http://dev.w3.org/html5/spec/Overview.html#creating
http://dev.w3.org/html5/spec/Overview.html#ws-ua-headers-processing
http://dev.w3.org/html5/spec/Overview.html#scriptTag
http://dev.w3.org/html5/spec/Overview.html#optionin0
http://dev.w3.org/html5/spec/Overview.html#websocket1
http://dev.w3.org/html5/spec/Overview.html#websocket0
http://dev.w3.org/html5/spec/Overview.html#entangle
http://dev.w3.org/html5/spec/Overview.html#apis-for
http://dev.w3.org/html5/spec/Overview.html#isindex
http://dev.w3.org/html5/spec/Overview.html#pipe
http://dev.w3.org/html5/spec/Overview.html#generic0
http://dev.w3.org/html5/spec/Overview.html#pipe0
http://dev.w3.org/html5/spec/Overview.html#pipeend0
Previously published WD content per affected section:
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#end1
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#end2
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#syntax
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#pipe-messaging
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#ws-ua-1
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#the-before
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#pipe-messaging0
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#create
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#create0
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#url2
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#the-websocket
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#insert0
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#insert1
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#creating
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#ws-ua-headers-processing
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#scriptTag
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#optionin0
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#websocket1
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#websocket0
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#entangle
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#apis-for
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#isindex
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#pipe
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#generic0
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#pipe0
http://www.w3.org/TR/2008/WD-html5-20080610/single-page/#pipeend0
Cumulative diff: http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1055&r2=1.1056&f=h
http://html5.org/tools/web-apps-tracker?from=1866&to=1867
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1055
retrieving revision 1.1056
diff -u -d -r1.1055 -r1.1056
--- Overview.html 12 Jul 2008 02:50:14 -0000 1.1055
+++ Overview.html 12 Jul 2008 10:50:14 -0000 1.1056
@@ -30460,9 +30460,6 @@
processing</span>
</dl>
- <p class=big-issue>And when constructors are invoked but without using the
- constructor syntax...?
-
<h4 id=apis-for><span class=secno>5.2.3 </span>APIs for creating and
navigating browsing contexts by name</h4>
@@ -41366,7 +41363,7 @@
<pre class=idl>interface <dfn id=websocket0>WebSocket</dfn> {
// constructor
- [Constructor] <a href="#websocket0">WebSocket</a>(in DOMString url);
+ [<a href="#websocket1" title=dom-WebSocket>Constructor</a>] <a href="#websocket0">WebSocket</a>(in DOMString url);
readonly attribute DOMString <a href="#url2" title=dom-WebSocket-URL>URL</a>;
// ready state
@@ -41387,18 +41384,19 @@
implement the <code>EventTarget</code> interface. <a
href="#references">[DOM3EVENTS]</a>
- <p>The <dfn id=websocket1 title=dom-WebSocket><code>WebSocket</code></dfn>
- constructor takes one argument, <var title="">url</var>, which specifies
- the <a href="#url">URL</a> to which to connect. When a <code><a
- href="#websocket0">WebSocket</a></code> object is created, the UA must <a
- href="#parse0" title="parse a url">parse</a> this argument and verify that
- the URL parses without failure and has a <a href="#ltschemegt"
- title=url-scheme><scheme></a> component whose value is either "<code
- title="">ws</code>" or "<code title="">wss</code>", when compared
- case-insensitively<!-- XXX ASCII -->. If it does, it has, and it is, then
- the user agent must asynchronously <a href="#establish">establish a Web
- Socket connection</a> to <var title="">url</var>. Otherwise, the
- constructor must raise a <code>SYNTAX_ERR</code> exception.
+ <p>The <dfn id=websocket1 title=dom-WebSocket><code>WebSocket(<var
+ title="">url</var>)</code></dfn> constructor takes one argument, <var
+ title="">url</var>, which specifies the <a href="#url">URL</a> to which to
+ connect. When a <code><a href="#websocket0">WebSocket</a></code> object is
+ created, the UA must <a href="#parse0" title="parse a url">parse</a> this
+ argument and verify that the URL parses without failure and has a <a
+ href="#ltschemegt" title=url-scheme><scheme></a> component whose
+ value is either "<code title="">ws</code>" or "<code title="">wss</code>",
+ when compared case-insensitively<!-- XXX ASCII -->. If it does, it has,
+ and it is, then the user agent must asynchronously <a
+ href="#establish">establish a Web Socket connection</a> to <var
+ title="">url</var>. Otherwise, the constructor must raise a
+ <code>SYNTAX_ERR</code> exception.
<p>The <dfn id=url2 title=dom-WebSocket-URL><code>URL</code></dfn>
attribute must return the value that was passed to the constructor.
@@ -41642,8 +41640,8 @@
<p>Send the <a href="#ascii" title="ASCII serialization of an
origin">ASCII serialization</a> of the <a href="#origin0">origin</a> of
- the script that invoked the <code><a
- href="#websocket0">WebSocket</a></code> constructor.</p>
+ the script that invoked the <code title=dom-WebSocket><a
+ href="#websocket1">WebSocket()</a></code> constructor.</p>
<p>Send the following bytes:</p>
@@ -41839,9 +41837,10 @@
<dd>Assume the value is a <a href="#url">URL</a>. If the value does not
have the <a href="#same-origin">same origin</a> as the script that
- invoked the <code><a href="#websocket0">WebSocket</a></code>
- constructor, then <a href="#fail-the">fail the Web Socket
- connection</a> and abort these steps.
+ invoked the <code title=dom-WebSocket><a
+ href="#websocket1">WebSocket()</a></code> constructor, then <a
+ href="#fail-the">fail the Web Socket connection</a> and abort these
+ steps.
<dt>If the entry's name is "<code title="">websocket-location</code>"
@@ -42334,10 +42333,9 @@
<h3 id=pipe-messaging><span class=secno>7.5 </span><dfn
id=pipe-messaging0>Pipe messaging</dfn></h3>
- <p class=big-issue>...
-
- <pre class=idl>[Constructor] interface <dfn id=pipe>Pipe</dfn> {
- readonly attribute <a href="#pipeend0">PipeEnd</a> <span title=dom-pipe-end1>end1</span>;
+ <pre
+ class=idl>[<a href="#pipe0" title=dom-Pipe>Constructor</a>] interface <dfn id=pipe>Pipe</dfn> {
+ readonly attribute <a href="#pipeend0">PipeEnd</a> <a href="#end2" title=dom-pipe-end1>end1</a>;
readonly attribute <a href="#pipeend0">PipeEnd</a> <span title=dom-pipe-end2>end2</span>;
};
@@ -42353,7 +42351,54 @@
attribute <span>EventListener</span> <span title=handler-endpipe-onunload>onunload</span>;
};</pre>
- <p class=big-issue>...
+ <p>When the <dfn id=pipe0 title=dom-Pipe><code>Pipe()</code></dfn>
+ constructor is called, it must run the following algorithm:
+
+ <ol>
+ <li>
+ <p><a href="#create">Create a new <code>PipeEnd</code> object</a> owned
+ by the <a href="#script3">script browsing context</a>, and let <var
+ title="">end1</var> be that object.
+
+ <li>
+ <p><a href="#create">Create a new <code>PipeEnd</code> object</a> owned
+ by the <a href="#script3">script browsing context</a>, and let <var
+ title="">end2</var> be that object.
+
+ <li>
+ <p><a href="#entangle">Entangle</a> the <var title="">end1</var> and <var
+ title="">end2</var> objects.
+
+ <li>
+ <p>Create a new <code><a href="#pipe">Pipe</a></code> object, and let
+ <var title="">pipe</var> be that object.
+
+ <li>
+ <p>Let the <code title=dom-pipe-end1><a href="#end2">end1</a></code>
+ attribute of the <var title="">pipe</var> object be <var
+ title="">end1</var>.</p>
+
+ <li>
+ <p>Let the <code title=dom-pipe-end2>end2</code> attribute of the <var
+ title="">pipe</var> object be <var title="">end2</var>.</p>
+
+ <li>
+ <p>Return <var title="">pipe</var>.
+ </ol>
+
+ <p class=big-issue><dfn id=end1 title=dom-pipe-end1><code>end1</code></dfn>
+ <dfn id=end2 title=dom-pipe-end1><code>end2</code></dfn>
+
+ <hr>
+
+ <p class=big-issue>When the user agent is to <dfn id=create>create a new
+ <code>PipeEnd</code> object</dfn> owned by a <code><a
+ href="#window">Window</a></code> object <var title="">owner</var>, it
+ must...
+
+ <p class=big-issue>When the user agent is to <dfn
+ id=entangle>entangle</dfn> teo <code><a
+ href="#pipeend0">PipeEnd</a></code> objects, it must...
<h2 id=syntax><span class=secno>8. </span>The HTML syntax</h2>
@@ -46314,7 +46359,7 @@
<h5 id=creating><span class=secno>8.2.5.1. </span>Creating and inserting
elements</h5>
- <p>When the steps below require the UA to <dfn id=create title="create an
+ <p>When the steps below require the UA to <dfn id=create0 title="create an
element for the token">create an element for a token</dfn> in a particular
namespace, the UA must create a node implementing the interface
appropriate for the element type corresponding to the tag name of the
@@ -46334,7 +46379,7 @@
defined by that namespace's specification is <code>Element</code>.
<p>When the steps below require the UA to <dfn id=insert0>insert an HTML
- element</dfn> for a token, the UA must first <a href="#create">create an
+ element</dfn> for a token, the UA must first <a href="#create0">create an
element for the token</a> in the <a href="#html-namespace0">HTML
namespace</a>, and then append this node to the <a
href="#current5">current node</a>, and push it onto the <a
@@ -46348,7 +46393,7 @@
happens in particular during the parsing of tables with invalid content.)
<p>When the steps below require the UA to <dfn id=insert1>insert a foreign
- element</dfn> for a token, the UA must first <a href="#create">create an
+ element</dfn> for a token, the UA must first <a href="#create0">create an
element for the token</a> in the given namespace, and then append this
node to the <a href="#current5">current node</a>, and push it onto the <a
href="#stack">stack of open elements</a> so that it is the new <a
@@ -46571,7 +46616,7 @@
<ol>
<li>
- <p><a href="#create">Create an element for the token</a> in the <a
+ <p><a href="#create0">Create an element for the token</a> in the <a
href="#html-namespace0">HTML namespace</a>.
<li>
@@ -46999,7 +47044,7 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p><a href="#create">Create an element for the token</a> in the <a
+ <p><a href="#create0">Create an element for the token</a> in the <a
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>
@@ -47216,7 +47261,7 @@
<dt id=scriptTag>A start tag whose tag name is "script"
<dd>
- <p><a href="#create">Create an element for the token</a> in the <a
+ <p><a href="#create0">Create an element for the token</a> in the <a
href="#html-namespace0">HTML namespace</a>.</p>
<p>Mark the element as being <a
@@ -48429,7 +48474,7 @@
<dt>A start tag whose tag name is "textarea"
<dd>
- <p><a href="#create">Create an element for the token</a> in the <a
+ <p><a href="#create0">Create an element for the token</a> in the <a
href="#html-namespace0">HTML namespace</a>. Append the new element to
the <a href="#current5">current node</a>.</p>
Received on Monday, 14 July 2008 10:07:36 UTC