Commits

annevk  committed 98a7211

update union syntax

  • Participants
  • Parent commits c3ae377

Comments (0)

Files changed (3)

File Overview.html

 <!--end-logo-->
 </div>
  <h1>DOM4</h1>
- <h2 class="no-num no-toc" id="editor's-draft-21-december-2011">
-  <span class="w3conly">Editor's Draft 21 December 2011</span>
+ <h2 class="no-num no-toc" id="editor's-draft-22-december-2011">
+  <span class="w3conly">Editor's Draft 22 December 2011</span>
   </h2>
 
  <dl>
 <p class="dontpublish copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></a>
 To the extent possible under law, the editors have waived all copyright and
 related or neighboring rights to this work. In addition, as of
-21 December 2011, the editors have made this specification available
+22 December 2011, the editors have made this specification available
 under the
 <a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
 which is available at
   <a href="#nodeiterator">NodeIterator</a> <a href="#dom-document-createnodeiterator" title="dom-Document-createNodeIterator">createNodeIterator</a>(<a href="#node">Node</a> <var title="">root</var>, optional unsigned long <var title="">whatToShow</var>, optional <a href="#nodefilter">NodeFilter</a>? <var title="">filter</var>);
   <a href="#treewalker">TreeWalker</a> <a href="#dom-document-createtreewalker" title="dom-Document-createTreeWalker">createTreeWalker</a>(<a href="#node">Node</a> <var title="">root</var>, optional unsigned long <var title="">whatToShow</var>, optional <a href="#nodefilter">NodeFilter</a>? <var title="">filter</var>);
 
-  // NEW (using experimental IDL)
-  void <a href="#dom-rootnode-prepend" title="dom-RootNode-prepend">prepend</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-rootnode-append" title="dom-RootNode-append">append</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
+  // NEW
+  void <a href="#dom-rootnode-prepend" title="dom-RootNode-prepend">prepend</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-rootnode-append" title="dom-RootNode-append">append</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
 };
 
 interface <dfn id="xmldocument">XMLDocument</dfn> : <a href="#document">Document</a> {};</pre>
 
 <h3 id="interface-documentfragment"><span class="secno">5.4 </span>Interface <code><a href="#documentfragment">DocumentFragment</a></code></h3>
 <pre class="idl">interface <dfn id="documentfragment">DocumentFragment</dfn> : <a href="#node">Node</a> {
-  // NEW (using experimental IDL)
-  void <a href="#dom-rootnode-prepend" title="dom-RootNode-prepend">prepend</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-rootnode-append" title="dom-RootNode-append">append</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
+  // NEW
+  void <a href="#dom-rootnode-prepend" title="dom-RootNode-prepend">prepend</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-rootnode-append" title="dom-RootNode-append">append</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
 };</pre>
 
 
   readonly attribute DOMString <a href="#dom-documenttype-systemid" title="dom-DocumentType-systemId">systemId</a>;<!--
   readonly attribute DOMString internalSubset;-->
 
-  // NEW (using experimental IDL)
-  void <a href="#dom-childnode-before" title="dom-ChildNode-before">before</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-after" title="dom-ChildNode-after">after</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-replace" title="dom-ChildNode-replace">replace</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
+  // NEW
+  void <a href="#dom-childnode-before" title="dom-ChildNode-before">before</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-after" title="dom-ChildNode-after">after</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-replace" title="dom-ChildNode-replace">replace</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
   void <a href="#dom-childnode-remove" title="dom-ChildNode-remove">remove</a>();
 };</pre>
 
   readonly attribute <a href="#element">Element</a>? <a href="#dom-element-nextelementsibling" title="dom-Element-nextElementSibling">nextElementSibling</a>;
   readonly attribute unsigned long <a href="#dom-element-childelementcount" title="dom-Element-childElementCount">childElementCount</a>;<!-- XXX remove??-->
 
-  // NEW (using experimental IDL)
-  void <a href="#dom-rootnode-prepend" title="dom-RootNode-prepend">prepend</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-rootnode-append" title="dom-RootNode-append">append</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-before" title="dom-ChildNode-before">before</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-after" title="dom-ChildNode-after">after</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-replace" title="dom-ChildNode-replace">replace</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
+  // NEW
+  void <a href="#dom-rootnode-prepend" title="dom-RootNode-prepend">prepend</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-rootnode-append" title="dom-RootNode-append">append</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-before" title="dom-ChildNode-before">before</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-after" title="dom-ChildNode-after">after</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-replace" title="dom-ChildNode-replace">replace</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
   void <a href="#dom-childnode-remove" title="dom-ChildNode-remove">remove</a>();
 };</pre>
 
   void <a href="#dom-characterdata-deletedata" title="dom-CharacterData-deleteData">deleteData</a>(unsigned long <var title="">offset</var>, unsigned long <var title="">count</var>);
   void <a href="#dom-characterdata-replacedata" title="dom-CharacterData-replaceData">replaceData</a>(unsigned long <var title="">offset</var>, unsigned long <var title="">count</var>, DOMString <var title="">data</var>);
 
-  // NEW (using experimental IDL)
-  void <a href="#dom-childnode-before" title="dom-ChildNode-before">before</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-after" title="dom-ChildNode-after">after</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-replace" title="dom-ChildNode-replace">replace</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
+  // NEW
+  void <a href="#dom-childnode-before" title="dom-ChildNode-before">before</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-after" title="dom-ChildNode-after">after</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-replace" title="dom-ChildNode-replace">replace</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
   void <a href="#dom-childnode-remove" title="dom-ChildNode-remove">remove</a>();
 };</pre>
 

File Overview.src.html

   <span>NodeIterator</span> <span title=dom-Document-createNodeIterator>createNodeIterator</span>(<span>Node</span> <var title>root</var>, optional unsigned long <var title>whatToShow</var>, optional <span>NodeFilter</span>? <var title>filter</var>);
   <span>TreeWalker</span> <span title=dom-Document-createTreeWalker>createTreeWalker</span>(<span>Node</span> <var title>root</var>, optional unsigned long <var title>whatToShow</var>, optional <span>NodeFilter</span>? <var title>filter</var>);
 
-  // NEW (using experimental IDL)
-  void <span title=dom-RootNode-prepend>prepend</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
-  void <span title=dom-RootNode-append>append</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
+  // NEW
+  void <span title=dom-RootNode-prepend>prepend</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
+  void <span title=dom-RootNode-append>append</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
 };
 
 interface <dfn>XMLDocument</dfn> : <span>Document</span> {};</pre>
 
 <h3>Interface <code>DocumentFragment</code></h3>
 <pre class=idl>interface <dfn>DocumentFragment</dfn> : <span>Node</span> {
-  // NEW (using experimental IDL)
-  void <span title=dom-RootNode-prepend>prepend</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
-  void <span title=dom-RootNode-append>append</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
+  // NEW
+  void <span title=dom-RootNode-prepend>prepend</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
+  void <span title=dom-RootNode-append>append</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
 };</pre>
 
 
   readonly attribute DOMString <span title=dom-DocumentType-systemId>systemId</span>;<!--
   readonly attribute DOMString internalSubset;-->
 
-  // NEW (using experimental IDL)
-  void <span title=dom-ChildNode-before>before</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
-  void <span title=dom-ChildNode-after>after</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
-  void <span title=dom-ChildNode-replace>replace</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
+  // NEW
+  void <span title=dom-ChildNode-before>before</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
+  void <span title=dom-ChildNode-after>after</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
+  void <span title=dom-ChildNode-replace>replace</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
   void <span title=dom-ChildNode-remove>remove</span>();
 };</pre>
 
   readonly attribute <span>Element</span>? <span title=dom-Element-nextElementSibling>nextElementSibling</span>;
   readonly attribute unsigned long <span title=dom-Element-childElementCount>childElementCount</span>;<!-- XXX remove??-->
 
-  // NEW (using experimental IDL)
-  void <span title=dom-RootNode-prepend>prepend</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
-  void <span title=dom-RootNode-append>append</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
-  void <span title=dom-ChildNode-before>before</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
-  void <span title=dom-ChildNode-after>after</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
-  void <span title=dom-ChildNode-replace>replace</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
+  // NEW
+  void <span title=dom-RootNode-prepend>prepend</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
+  void <span title=dom-RootNode-append>append</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
+  void <span title=dom-ChildNode-before>before</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
+  void <span title=dom-ChildNode-after>after</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
+  void <span title=dom-ChildNode-replace>replace</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
   void <span title=dom-ChildNode-remove>remove</span>();
 };</pre>
 
   void <span title=dom-CharacterData-deleteData>deleteData</span>(unsigned long <var title>offset</var>, unsigned long <var title>count</var>);
   void <span title=dom-CharacterData-replaceData>replaceData</span>(unsigned long <var title>offset</var>, unsigned long <var title>count</var>, DOMString <var title>data</var>);
 
-  // NEW (using experimental IDL)
-  void <span title=dom-ChildNode-before>before</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
-  void <span title=dom-ChildNode-after>after</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
-  void <span title=dom-ChildNode-replace>replace</span>(<span>Node</span> | DOMString... <var title>nodes</var>);
+  // NEW
+  void <span title=dom-ChildNode-before>before</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
+  void <span title=dom-ChildNode-after>after</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
+  void <span title=dom-ChildNode-replace>replace</span>((<span>Node</span> or DOMString)... <var title>nodes</var>);
   void <span title=dom-ChildNode-remove>remove</span>();
 };</pre>
 

File dom-core.html

 
 <div class="head">
 <h1>DOM4</h1>
- <h2 class="no-num no-toc" id="free-editor's-draft-21-december-2011">
-  <span class="now3c">Free Editor's Draft 21 December 2011</span>
+ <h2 class="no-num no-toc" id="free-editor's-draft-22-december-2011">
+  <span class="now3c">Free Editor's Draft 22 December 2011</span>
  </h2>
 
  <dl>
 <p class="dontpublish copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></a>
 To the extent possible under law, the editors have waived all copyright and
 related or neighboring rights to this work. In addition, as of
-21 December 2011, the editors have made this specification available
+22 December 2011, the editors have made this specification available
 under the
 <a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
 which is available at
   <a href="#nodeiterator">NodeIterator</a> <a href="#dom-document-createnodeiterator" title="dom-Document-createNodeIterator">createNodeIterator</a>(<a href="#node">Node</a> <var title="">root</var>, optional unsigned long <var title="">whatToShow</var>, optional <a href="#nodefilter">NodeFilter</a>? <var title="">filter</var>);
   <a href="#treewalker">TreeWalker</a> <a href="#dom-document-createtreewalker" title="dom-Document-createTreeWalker">createTreeWalker</a>(<a href="#node">Node</a> <var title="">root</var>, optional unsigned long <var title="">whatToShow</var>, optional <a href="#nodefilter">NodeFilter</a>? <var title="">filter</var>);
 
-  // NEW (using experimental IDL)
-  void <a href="#dom-rootnode-prepend" title="dom-RootNode-prepend">prepend</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-rootnode-append" title="dom-RootNode-append">append</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
+  // NEW
+  void <a href="#dom-rootnode-prepend" title="dom-RootNode-prepend">prepend</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-rootnode-append" title="dom-RootNode-append">append</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
 };
 
 interface <dfn id="xmldocument">XMLDocument</dfn> : <a href="#document">Document</a> {};</pre>
 
 <h3 id="interface-documentfragment"><span class="secno">5.4 </span>Interface <code><a href="#documentfragment">DocumentFragment</a></code></h3>
 <pre class="idl">interface <dfn id="documentfragment">DocumentFragment</dfn> : <a href="#node">Node</a> {
-  // NEW (using experimental IDL)
-  void <a href="#dom-rootnode-prepend" title="dom-RootNode-prepend">prepend</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-rootnode-append" title="dom-RootNode-append">append</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
+  // NEW
+  void <a href="#dom-rootnode-prepend" title="dom-RootNode-prepend">prepend</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-rootnode-append" title="dom-RootNode-append">append</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
 };</pre>
 
 
   readonly attribute DOMString <a href="#dom-documenttype-systemid" title="dom-DocumentType-systemId">systemId</a>;<!--
   readonly attribute DOMString internalSubset;-->
 
-  // NEW (using experimental IDL)
-  void <a href="#dom-childnode-before" title="dom-ChildNode-before">before</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-after" title="dom-ChildNode-after">after</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-replace" title="dom-ChildNode-replace">replace</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
+  // NEW
+  void <a href="#dom-childnode-before" title="dom-ChildNode-before">before</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-after" title="dom-ChildNode-after">after</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-replace" title="dom-ChildNode-replace">replace</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
   void <a href="#dom-childnode-remove" title="dom-ChildNode-remove">remove</a>();
 };</pre>
 
   readonly attribute <a href="#element">Element</a>? <a href="#dom-element-nextelementsibling" title="dom-Element-nextElementSibling">nextElementSibling</a>;
   readonly attribute unsigned long <a href="#dom-element-childelementcount" title="dom-Element-childElementCount">childElementCount</a>;<!-- XXX remove??-->
 
-  // NEW (using experimental IDL)
-  void <a href="#dom-rootnode-prepend" title="dom-RootNode-prepend">prepend</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-rootnode-append" title="dom-RootNode-append">append</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-before" title="dom-ChildNode-before">before</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-after" title="dom-ChildNode-after">after</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-replace" title="dom-ChildNode-replace">replace</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
+  // NEW
+  void <a href="#dom-rootnode-prepend" title="dom-RootNode-prepend">prepend</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-rootnode-append" title="dom-RootNode-append">append</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-before" title="dom-ChildNode-before">before</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-after" title="dom-ChildNode-after">after</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-replace" title="dom-ChildNode-replace">replace</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
   void <a href="#dom-childnode-remove" title="dom-ChildNode-remove">remove</a>();
 };</pre>
 
   void <a href="#dom-characterdata-deletedata" title="dom-CharacterData-deleteData">deleteData</a>(unsigned long <var title="">offset</var>, unsigned long <var title="">count</var>);
   void <a href="#dom-characterdata-replacedata" title="dom-CharacterData-replaceData">replaceData</a>(unsigned long <var title="">offset</var>, unsigned long <var title="">count</var>, DOMString <var title="">data</var>);
 
-  // NEW (using experimental IDL)
-  void <a href="#dom-childnode-before" title="dom-ChildNode-before">before</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-after" title="dom-ChildNode-after">after</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
-  void <a href="#dom-childnode-replace" title="dom-ChildNode-replace">replace</a>(<a href="#node">Node</a> | DOMString... <var title="">nodes</var>);
+  // NEW
+  void <a href="#dom-childnode-before" title="dom-ChildNode-before">before</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-after" title="dom-ChildNode-after">after</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
+  void <a href="#dom-childnode-replace" title="dom-ChildNode-replace">replace</a>((<a href="#node">Node</a> or DOMString)... <var title="">nodes</var>);
   void <a href="#dom-childnode-remove" title="dom-ChildNode-remove">remove</a>();
 };</pre>