[html5] r1095 - /

whatwg at whatwg.org whatwg at whatwg.org
Wed Oct 24 16:36:10 PDT 2007


Author: ianh
Date: 2007-10-24 16:36:05 -0700 (Wed, 24 Oct 2007)
New Revision: 1095

Modified:
   index
   source
Log:
[] (0) Apparently document.write() concatenates all arguments.

Modified: index
===================================================================
--- index	2007-10-24 23:11:05 UTC (rev 1094)
+++ index	2007-10-24 23:36:05 UTC (rev 1095)
@@ -2541,7 +2541,7 @@
   <a href="#window">Window</a> <a href="#open" title=dom-document-open>open</a>(in DOMString url, in DOMString name, in DOMString features, in boolean replace);
   void <a href="#close" title=dom-document-close>close</a>();
   void <a href="#document.write" title=dom-document-write>write</a>(in DOMString text);
-  void <a href="#document.writeln" title=dom-document-writeln>writeln</a>(in DOMString text);
+  void <a href="#document.writeln..." title=dom-document-writeln>writeln</a>(in DOMString text);
 
   // <a href="#interaction0">Interaction</a>
   readonly attribute <span>Element</span> <a href="#activeelement" title=dom-document-activeElement>activeElement</a>;
@@ -3627,7 +3627,7 @@
     <tr>
      <th>For documents that are <a href="#html-">HTML documents</a>
 
-     <td><a href="#document.write0"
+     <td><a href="#document.write..."
       title=dom-document-write-HTML><code>document.write()</code> in HTML</a>
 
      <td><a href="#innerhtml0"
@@ -3636,20 +3636,18 @@
     <tr>
      <th>For documents that are <a href="#xml-documents">XML documents</a>
 
-     <td><a href="#document.write1"
+     <td><a href="#document.write0"
       title=dom-document-write-XML><code>document.write()</code> in XML</a>
 
      <td><a href="#innerhtml1" title=dom-innerHTML-XML><code>innerHTML</code>
       in XML</a>
   </table>
 
-  <p>Regardless of the parsing mode, the <dfn id=document.writeln
-   title=dom-document-writeln><code>document.writeln(<var
-   title="">s</var>)</code></dfn> method must call the <code
-   title=dom-document-write><a
+  <p>Regardless of the parsing mode, the <dfn id=document.writeln...
+   title=dom-document-writeln><code>document.writeln(...)</code></dfn> method
+   must call the <code title=dom-document-write><a
    href="#document.write">document.write()</a></code> method with the same
-   argument <var title="">s</var>, and then call the <code
-   title=dom-document-write><a
+   argument(s), and then call the <code title=dom-document-write><a
    href="#document.write">document.write()</a></code> method with, as its
    argument, a string consisting of a single line feed character (U+000A).
 
@@ -3791,9 +3789,9 @@
   <h4 id=dynamic0><span class=secno>2.5.2. </span>Dynamic markup insertion in
    HTML</h4>
 
-  <p>In HTML, the <dfn id=document.write0
-   title=dom-document-write-HTML><code>document.write(<var
-   title="">s</var>)</code></dfn> method must act as follows:
+  <p>In HTML, the <dfn id=document.write...
+   title=dom-document-write-HTML><code>document.write(...)</code></dfn>
+   method must act as follows:
 
   <ol>
    <li>
@@ -3805,8 +3803,9 @@
      of the (empty) <a href="#input0">input stream</a>.</p>
 
    <li>
-    <p>The string <var title="">s</var> must be inserted into the <a
-     href="#input0">input stream</a><!-- XXX xref --> just before the <a
+    <p>The string consisting of the concatenation of all the arguments to the
+     method must be inserted into the <a href="#input0">input
+     stream</a><!-- XXX xref --> just before the <a
      href="#insertion">insertion point</a>.</p>
 
    <li>
@@ -3824,7 +3823,7 @@
      start tag token is emitted by the tokeniser).
 
     <p class=note>If the <code title=dom-document-write-HTML><a
-     href="#document.write0">document.write()</a></code> method was called
+     href="#document.write...">document.write()</a></code> method was called
      from script executing inline (i.e. executing because the parser parsed a
      set of <code><a href="#script0">script</a></code> tags), then this is a
      <a href="#nestedParsing">reentrant invocation of the parser</a>.</p>
@@ -3950,10 +3949,9 @@
   <h4 id=dynamic1><span class=secno>2.5.3. </span>Dynamic markup insertion in
    XML</h4>
 
-  <p>In an XML context, the <dfn id=document.write1
-   title=dom-document-write-XML><code>document.write(<var
-   title="">s</var>)</code></dfn> method must raise an
-   <code>INVALID_ACCESS_ERR</code> exception.</p>
+  <p>In an XML context, the <dfn id=document.write0
+   title=dom-document-write-XML><code>document.write()</code></dfn> method
+   must raise an <code>INVALID_ACCESS_ERR</code> exception.</p>
   <!--
   For XHTML: content must be well-formed. Where does
   it insert? Immediately after the script that called document.write()?</p>
@@ -19697,10 +19695,10 @@
    id=parser-inserted>"parser-inserted"</dfn>. This flag is set by the <a
    href="#html-0">HTML parser</a> and is used to handle <code
    title=dom-document-write-HTML><a
-   href="#document.write0">document.write()</a></code> calls. The third piece
-   of metadata is <dfn id=the-scripts><var>the script's type</var></dfn>. It
-   is determined when the script is run, based on the attributes on the
-   element at that time.
+   href="#document.write...">document.write()</a></code> calls. The third
+   piece of metadata is <dfn id=the-scripts><var>the script's
+   type</var></dfn>. It is determined when the script is run, based on the
+   attributes on the element at that time.
 
   <p><dfn id=running0 title="running a script">Running a script</dfn>: when a
    script block is <span>inserted into a document</span>, the user agent must
@@ -36943,7 +36941,7 @@
    from the network, but <a href="#dynamic2" title="dynamic markup
    insertion">it can also come from script</a>, e.g. using the <code
    title=dom-document-write-HTML><a
-   href="#document.write0">document.write()</a></code> API.
+   href="#document.write...">document.write()</a></code> API.
 
   <p><img alt="" src="images/parsing-model-overview.png">
 
@@ -37475,8 +37473,8 @@
   <p>The <dfn id=insertion>insertion point</dfn> is the position (just before
    a character or just before the end of the input stream) where content
    inserted using <code title=dom-document-write-HTML><a
-   href="#document.write0">document.write()</a></code> is actually inserted.
-   The insertion point is relative to the position of the character
+   href="#document.write...">document.write()</a></code> is actually
+   inserted. The insertion point is relative to the position of the character
    immediately after it, it is not an absolute offset into the input stream.
    Initially, the insertion point is uninitialised.
 
@@ -39233,9 +39231,9 @@
    caused by the UA parsing the document. (Conceptually, the parser is not
    mutating the DOM, it is constructing it.) This includes the parsing of any
    content inserted using <code title=dom-document-write-HTML><a
-   href="#document.write0">document.write()</a></code> and <code
+   href="#document.write...">document.write()</a></code> and <code
    title=dom-document-writeln><a
-   href="#document.writeln">document.writeln()</a></code> calls.<!--
+   href="#document.writeln...">document.writeln()</a></code> calls.<!--
   XXX xref -->
    <a href="#refsDOM3EVENTS">[DOM3EVENTS]</a></p>
   <!-- XXX
@@ -40413,7 +40411,7 @@
         <p>Mark the element as being <a
          href="#parser-inserted">"parser-inserted"</a>. This ensures that, if
          the script is external, any <code title=dom-document-write-HTML><a
-         href="#document.write0">document.write()</a></code> calls in the
+         href="#document.write...">document.write()</a></code> calls in the
          script will execute in-line, instead of blowing the document away,
          as would happen in most other cases.</p>
 
@@ -40465,7 +40463,7 @@
          node</a>. <a href="#running0" title="running a script">Special
          processing occurs when a <code>script</code> element is inserted
          into a document</a> that might cause some script to execute, which
-         might cause <a href="#document.write0"
+         might cause <a href="#document.write..."
          title=dom-document-write-HTML>new characters to be inserted into the
          tokeniser</a>.</p>
 
@@ -40484,7 +40482,7 @@
          <dt>If the tree construction stage is <a href="#nestedParsing">being
           called reentrantly</a>, say from a call to <code
           title=dom-document-write-HTML><a
-          href="#document.write0">document.write()</a></code>:
+          href="#document.write...">document.write()</a></code>:
 
          <dd>
           <p>Abort the processing of any nested invokations of the tokeniser,
@@ -45188,10 +45186,10 @@
    Nachbaur, Michael A. Puls II<!--Shadow2531-->, Michael Gratton, Michael
    Powers, Michel Fortin, Mihai &#x015E;ucan<!-- from ROBO Design -->, Mike
    Brown, Mike Dierken<!-- S. Mike Dierken -->, Mike Dixon, Mike Schinkel,
-   Mike Shaver, Mikko Rantalainen, Neil Deakin, Olav Junker Kjær,
-   Philip Taylor, Rajas Moonka, Ralph Giles, Rimantas Liubertas, Robert
-   O'Callahan, Robert Sayre, Roman Ivanov, S. Mike Dierken, Sam Ruby, Sam
-   Weinig, Scott Hess, Sean Knapp, Shaun Inman, Silvia Pfeiffer, Simon
+   Mike Shaver, Mikko Rantalainen, Neil Deakin, Olav Junker Kjær, Peter
+   Kasting, Philip Taylor, Rajas Moonka, Ralph Giles, Rimantas Liubertas,
+   Robert O'Callahan, Robert Sayre, Roman Ivanov, S. Mike Dierken, Sam Ruby,
+   Sam Weinig, Scott Hess, Sean Knapp, Shaun Inman, Silvia Pfeiffer, Simon
    Pieters, Stefan Haustein, Stephen Ma, Steve Runyon, Steven Garrity,
    Stewart Brodie, Stuart Parmenter, Tantek Çelik, Thomas Broyer,
    Thomas O'Connor, Tim Altman, Vladimir Vuki&#x0107;evi&#x0107;, Wakaba,

Modified: source
===================================================================
--- source	2007-10-24 23:11:05 UTC (rev 1094)
+++ source	2007-10-24 23:36:05 UTC (rev 1095)
@@ -2086,10 +2086,10 @@
   </table>
 
   <p>Regardless of the parsing mode, the <dfn
-  title="dom-document-writeln"><code>document.writeln(<var
-  title="">s</var>)</code></dfn> method must call the <code
+  title="dom-document-writeln"><code>document.writeln(...)</code></dfn>
+  method must call the <code
   title="dom-document-write">document.write()</code> method with the
-  same argument <var title="">s</var>, and then call the <code
+  same argument(s), and then call the <code
   title="dom-document-write">document.write()</code> method with, as
   its argument, a string consisting of a single line feed character
   (U+000A).</p>
@@ -2231,8 +2231,7 @@
   <h4>Dynamic markup insertion in HTML</h4>
 
   <p>In HTML, the <dfn
-  title="dom-document-write-HTML"><code>document.write(<var
-  title="">s</var>)</code></dfn>
+  title="dom-document-write-HTML"><code>document.write(...)</code></dfn>
   method must act as follows:</p>
 
   <ol>
@@ -2249,9 +2248,10 @@
 
    <li>
 
-    <p>The string <var title="">s</var> must be inserted into the
-    <span>input stream</span><!-- XXX xref --> just before the
-    <span>insertion point</span>.</p>
+    <p>The string consisting of the concatenation of all the arguments
+    to the method must be inserted into the <span>input
+    stream</span><!-- XXX xref --> just before the <span>insertion
+    point</span>.</p>
 
    </li>
 
@@ -2437,9 +2437,8 @@
   <h4>Dynamic markup insertion in XML</h4>
 
   <p>In an XML context, the <dfn
-  title="dom-document-write-XML"><code>document.write(<var
-  title="">s</var>)</code></dfn> method must raise an
-  <code>INVALID_ACCESS_ERR</code> exception.</p>
+  title="dom-document-write-XML"><code>document.write()</code></dfn>
+  method must raise an <code>INVALID_ACCESS_ERR</code> exception.</p>
 
 <!--
   For XHTML: content must be well-formed. Where does
@@ -41066,12 +41065,12 @@
   Fortin, Mihai &#x015E;ucan<!-- from ROBO Design -->, Mike Brown,
   Mike Dierken<!-- S. Mike Dierken -->, Mike Dixon, Mike Schinkel,
   Mike Shaver, Mikko Rantalainen, Neil Deakin, Olav Junker Kjær,
-  Philip Taylor, Rajas Moonka, Ralph Giles, Rimantas Liubertas, Robert
-  O'Callahan, Robert Sayre, Roman Ivanov, S. Mike Dierken, Sam Ruby,
-  Sam Weinig, Scott Hess, Sean Knapp, Shaun Inman, Silvia Pfeiffer,
-  Simon Pieters, Stefan Haustein, Stephen Ma, Steve Runyon, Steven
-  Garrity, Stewart Brodie, Stuart Parmenter, Tantek Çelik,
-  Thomas Broyer, Thomas O'Connor, Tim Altman, Vladimir
+  Peter Kasting, Philip Taylor, Rajas Moonka, Ralph Giles, Rimantas
+  Liubertas, Robert O'Callahan, Robert Sayre, Roman Ivanov, S. Mike
+  Dierken, Sam Ruby, Sam Weinig, Scott Hess, Sean Knapp, Shaun Inman,
+  Silvia Pfeiffer, Simon Pieters, Stefan Haustein, Stephen Ma, Steve
+  Runyon, Steven Garrity, Stewart Brodie, Stuart Parmenter, Tantek
+  Çelik, Thomas Broyer, Thomas O'Connor, Tim Altman, Vladimir
   Vuki&#x0107;evi&#x0107;, Wakaba, William Swanson, Øistein
   E. Andersen, and everyone on the WHATWG mailing list for their
   useful and substantial comments.</p>




More information about the Commit-Watchers mailing list