HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/6532

File a bug

SVNBugCommentTime (UTC)
653211204Remove bits now specced in DOMPARSING spec.2011-09-04 17:28
Index: source
===================================================================
--- source	(revision 6531)
+++ source	(revision 6532)
@@ -2789,6 +2789,16 @@
     </ul>
 --><!--START w3c-html-->
 
+    <p>In addition, user agents must implement the features defined in
+    the DOM Range, DOM Parsing and Serialization, HTML Editing APIs,
+    and UndoManager and DOM Transaction specifications that apply to
+    their conformance class.
+    <a href="#refsDOMRANGE">[DOMRANGE]</a>
+    <a href="#refsDOMPARSING">[DOMPARSING]</a>
+    <a href="#refsEDITING">[EDITING]</a>
+    <a href="#refsUNDO">[UNDO]</a>
+    </p>
+
    </dd>
 
    <dt>File API</dt>
@@ -9209,7 +9219,6 @@
 <!--END w3c-html--><!--CSSREF-->  readonly attribute <span>DOMElementMap</span> <span title="dom-document-cssElementMap">cssElementMap</span>;<!--START w3c-html--><!--CSSREF-->
 
   // <span>dynamic markup insertion</span>
-           attribute DOMString <span title="dom-innerHTML">innerHTML</span>;
   <span>HTMLDocument</span> <span title="dom-document-open">open</span>(optional DOMString type, optional DOMString replace);
   <span>WindowProxy</span> <span title="dom-document-open">open</span>(DOMString url, DOMString name, DOMString features, optional boolean replace);
   void <span title="dom-document-close">close</span>();
@@ -10392,11 +10401,6 @@
   requirements,</span> is the <code>HTMLElement</code> interface.</p>
 
   <pre class="idl">interface <dfn>HTMLElement</dfn> : <span>Element</span> {
-  // <span>dynamic markup insertion</span>
-           attribute DOMString <span title="dom-innerHTML">innerHTML</span>;
-           attribute DOMString <span title="dom-outerHTML">outerHTML</span>;
-  void <span title="dom-insertAdjacentHTML">insertAdjacentHTML</span>(DOMString position, DOMString text);
-
   // <span>metadata attributes</span>
            attribute DOMString <span title="dom-id">id</span>;
            attribute DOMString <span title="dom-title">title</span>;
@@ -13717,473 +13721,7 @@
 
 
 
-  <h4><code title="dom-innerHTML">innerHTML</code></h4>
 
-  <p>The <dfn title="dom-innerHTML"><code>innerHTML</code></dfn> IDL
-  attribute represents the markup of the node's contents.</p>
-
-  <dl class="domintro">
-
-   <dt><var title="">document</var> . <code title="dom-innerHTML">innerHTML</code> [ = <var title="">value</var> ]</dt>
-
-   <dd>
-
-    <p>Returns a fragment of HTML or XML that represents the
-    <code>Document</code>.</p>
-
-    <p>Can be set, to replace the <code>Document</code>'s contents
-    with the result of parsing the given string.</p>
-
-    <p>In the case of <span>XML documents</span>, will throw an
-    <code>INVALID_STATE_ERR</code> if the <code>Document</code> cannot
-    be serialized to XML, and a <code>SYNTAX_ERR</code> if the given
-    string is not well-formed.</p>
-
-   </dd>
-
-   <dt><var title="">element</var> . <code title="dom-innerHTML">innerHTML</code> [ = <var title="">value</var> ]</dt>
-
-   <dd>
-
-    <p>Returns a fragment of HTML or XML that represents the element's
-    contents.</p>
-
-    <p>Can be set, to replace the contents of the element with nodes
-    parsed from the given string.</p>
-
-    <p>In the case of <span>XML documents</span>, will throw an
-    <code>INVALID_STATE_ERR</code> if the element cannot be serialized
-    to XML, and a <code>SYNTAX_ERR</code> if the given string is not
-    well-formed.</p>
-
-   </dd>
-
-  </dl>
-
-  <div class="impl">
-
-  <p>On getting, if the node's document is an <span title="HTML
-  documents">HTML document</span>, then the attribute must return the
-  result of running the <span>HTML fragment serialization
-  algorithm</span> on the node; otherwise, the node's document is an
-  <span title="XML documents">XML document</span>, and the attribute
-  must return the result of running the <span>XML fragment
-  serialization algorithm</span> on the node instead (this might raise
-  an exception instead of returning a string).</p>
-
-  <p>On setting, the following steps must be run:</p>
-
-  <ol>
-
-   <li>
-
-    <p>If the node's document is an <span title="HTML documents">HTML
-    document</span>: Invoke the <span>HTML fragment parsing
-    algorithm</span>.</p>
-
-    <p>If the node's document is an <span title="XML documents">XML
-    document</span>: Invoke the <span>XML fragment parsing
-    algorithm</span>.</p>
-
-    <p>In either case, the algorithm must be invoked with the string
-    being assigned into the <code
-    title="dom-innerHTML">innerHTML</code> attribute as the <var
-    title="">input</var>. If the node is an <code>Element</code>
-    node, then, in addition, that element must be passed as the <var
-    title="concept-frag-parse-context">context</var> element.</p>
-
-    <p>If this raises an exception, then abort these steps.</p>
-
-    <p>Otherwise, let <var title="">new children</var> be the nodes
-    returned.</p>
-
-   </li>
-
-   <li>
-
-    <p>If the attribute is being set on a <code>Document</code> node,
-    and that document has an <span>active parser</span>, then abort
-    that parser.</p>
-
-   </li>
-
-   <li>
-
-    <p>Remove the child nodes of the node whose <code
-    title="dom-innerHTML">innerHTML</code> attribute is being set,
-    firing appropriate mutation events.</p>
-
-   </li>
-
-   <li>
-
-    <p>If the attribute is being set on a <code>Document</code> node,
-    let <var title="">target document</var> be that
-    <code>Document</code> node. Otherwise, the attribute is being set
-    on an <code>Element</code> node; let <var title="">target
-    document</var> be the <code
-    title="dom-Node-ownerDocument">ownerDocument</code> of that
-    <code>Element</code>.</p>
-
-   </li>
-
-   <li>
-
-    <p>Set the <code
-    title="dom-Node-ownerDocument">ownerDocument</code> of all the
-    nodes in <var title="">new children</var> to the <var
-    title="">target document</var>.</p>
-
-   </li>
-
-   <li>
-
-    <p>Append all the <var title="">new children</var> nodes to the
-    node whose <code title="dom-innerHTML">innerHTML</code> attribute
-    is being set, preserving their order, and firing mutation events
-    as if a <code>DocumentFragment</code> containing the <var
-    title="">new children</var> had been inserted.</p>
-
-   </li>
-
-  </ol>
-
-  </div>
-
-
-
-  <h4><code title="dom-outerHTML">outerHTML</code></h4>
-
-  <p>The <dfn title="dom-outerHTML"><code>outerHTML</code></dfn> IDL
-  attribute represents the markup of the element and its contents.</p>
-
-  <dl class="domintro">
-
-   <dt><var title="">element</var> . <code title="dom-outerHTML">outerHTML</code> [ = <var title="">value</var> ]</dt>
-
-   <dd>
-
-    <p>Returns a fragment of HTML or XML that represents the element
-    and its contents.</p>
-
-    <p>Can be set, to replace the element with nodes parsed from the
-    given string.</p>
-
-    <p>In the case of <span>XML documents</span>, will throw an
-    <code>INVALID_STATE_ERR</code> if the element cannot be serialized
-    to XML, and a <code>SYNTAX_ERR</code> if the given string is not
-    well-formed.</p>
-
-    <p>Throws a <code>NO_MODIFICATION_ALLOWED_ERR</code> exception if
-    the parent of the element is the <code>Document</code>
-    node.</p>
-
-   </dd>
-
-  </dl>
-
-  <div class="impl">
-
-  <p>On getting, if the node's document is an <span title="HTML
-  documents">HTML document</span>, then the attribute must return the
-  result of running the <span>HTML fragment serialization
-  algorithm</span> on a fictional node whose only child is the node on
-  which the attribute was invoked; otherwise, the node's document is
-  an <span title="XML documents">XML document</span>, and the
-  attribute must return the result of running the <span>XML fragment
-  serialization algorithm</span> on that fictional node instead (this
-  might raise an exception instead of returning a string).</p>
-
-  <p>On setting, the following steps must be run:</p>
-
-  <ol>
-
-   <li>
-
-    <p>Let <var title="">target</var> be the element whose <code
-    title="dom-outerHTML">outerHTML</code> attribute is being
-    set.</p>
-
-   </li>
-
-   <li>
-
-    <p>If <var title="">target</var> has no parent node, then abort
-    these steps. There would be no way to obtain a reference to the
-    nodes created even if the remaining steps were run.</p>
-
-   </li>
-
-   <li>
-
-    <p>If <var title="">target</var>'s parent node is a
-    <code>Document</code> object, throw a
-    <code>NO_MODIFICATION_ALLOWED_ERR</code> exception and abort these
-    steps.</p>
-
-   </li>
-
-   <li>
-
-    <p>Let <var title="">parent</var> be <var title="">target</var>'s
-    parent node, unless that is a <code>DocumentFragment</code> node,
-    in which case let <var title="">parent</var> be an arbitrary
-    <code>body</code> element.</p>
-
-   </li>
-
-   <li>
-
-    <p>If <var title="">target</var>'s document is an <span
-    title="HTML documents">HTML document</span>: Invoke the <span>HTML
-    fragment parsing algorithm</span>.</p>
-
-    <p>If <var title="">target</var>'s document is an <span title="XML
-    documents">XML document</span>: Invoke the <span>XML fragment
-    parsing algorithm</span>.</p>
-
-    <p>In either case, the algorithm must be invoked with the string
-    being assigned into the <code
-    title="dom-outerHTML">outerHTML</code> attribute as the <var
-    title="">input</var>, and <var title="">parent</var> as the <var
-    title="concept-frag-parse-context">context</var> element.</p>
-
-    <p>If this raises an exception, then abort these steps.</p>
-
-    <p>Otherwise, let <var title="">new children</var> be the nodes
-    returned.</p>
-
-   </li>
-
-   <li>
-
-    <p>Set the <code
-    title="dom-Node-ownerDocument">ownerDocument</code> of all the
-    nodes in <var title="">new children</var> to <var
-    title="">target</var>'s document.</p>
-
-   </li>
-
-   <li>
-
-    <p>Remove <var title="">target</var> from its parent node, firing
-    mutation events as appropriate, and then insert in its place all
-    the <var title="">new children</var> nodes, preserving their
-    order, and again firing mutation events as if a
-    <code>DocumentFragment</code> containing the <var title="">new
-    children</var> had been inserted.</p>
-
-   </li>
-
-  </ol>
-
-  </div>
-
-
-
-  <h4><code title="dom-insertAdjacentHTML">insertAdjacentHTML()</code></h4>
-
-  <dl class="domintro">
-
-   <dt><var title="">element</var> . <code title="dom-insertAdjacentHTML">insertAdjacentHTML</code>(<var title="">position</var>, <var title="">text</var>)</dt>
-
-   <dd>
-
-    <p>Parses the given string <var title="">text</var> as HTML or XML
-    and inserts the resulting nodes into the tree in the position
-    given by the <var title="">position</var> argument, as
-    follows:</p>
-
-    <dl>
-     <dt>"beforebegin"</dt>
-     <dd>Before the element itself.</dd>
-     <dt>"afterbegin"</dt>
-     <dd>Just inside the element, before its first child.</dd>
-     <dt>"beforeend"</dt>
-     <dd>Just inside the element, after its last child.</dd>
-     <dt>"afterend"</dt>
-     <dd>After the element itself.</dd>
-    </dl>
-
-    <p>Throws a <code>SYNTAX_ERR</code> exception if the arguments
-    have invalid values (e.g., in the case of <span>XML
-    documents</span>, if the given string is not well-formed).</p>
-
-    <p>Throws a <code>NO_MODIFICATION_ALLOWED_ERR</code> exception if
-    the given position isn't possible (e.g. inserting elements after
-    the root element of a <code>Document</code>).</p>
-
-   </dd>
-
-  </dl>
-
-  <div class="impl">
-
-  <p>The <dfn
-  title="dom-insertAdjacentHTML"><code>insertAdjacentHTML(<var
-  title="">position</var>, <var title="">text</var>)</code></dfn>
-  method, when invoked, must run the following algorithm:</p>
-
-  <ol>
-
-   <li>
-
-    <p>Let <var title="">position</var> and <var title="">text</var>
-    be the method's first and second arguments, respectively.</p>
-
-   </li>
-
-   <li>
-
-    <p>Let <var title="">target</var> be the element on which the
-    method was invoked.</p>
-
-   </li>
-
-   <li>
-
-    <p>Use the first matching item from this list:</p>
-
-    <dl>
-
-     <dt>If <var title="">position</var> is an <span>ASCII
-     case-insensitive</span> match for the string "beforebegin"</dt>
-     <dt>If <var title="">position</var> is an <span>ASCII
-     case-insensitive</span> match for the string "afterend"</dt>
-
-     <dd>
-
-      <p>If <var title="">target</var> has no parent node, then abort
-      these steps.</p>
-
-      <p>If <var title="">target</var>'s parent node is a
-      <code>Document</code> object, then throw a
-      <code>NO_MODIFICATION_ALLOWED_ERR</code> exception and abort
-      these steps.
-
-      <p>Otherwise, let <var title="">destination</var> be the parent node
-      of <var title="">target</var>.</p>
-
-     </dd>
-
-     <dt>If <var title="">position</var> is an <span>ASCII
-     case-insensitive</span> match for the string "afterbegin"</dt>
-     <dt>If <var title="">position</var> is an <span>ASCII
-     case-insensitive</span> match for the string "beforeend"</dt>
-
-     <dd>
-
-      <p>Let <var title="">destination</var> be the same as <var
-      title="">target</var>.</p>
-
-     </dd>
-
-     <dt>Otherwise</dt>
-
-     <dd>
-
-      <p>Throw a <code>SYNTAX_ERR</code> exception.</p>
-
-     </dd>
-
-    </dl>
-
-   </li>
-
-   <li>
-
-    <p>If <var title="">target</var>'s document is an <span
-    title="HTML documents">HTML document</span>: Invoke the <span>HTML
-    fragment parsing algorithm</span>.</p>
-
-    <p>If <var title="">target</var>'s document is an <span title="XML
-    documents">XML document</span>: Invoke the <span>XML fragment
-    parsing algorithm</span>.</p>
-
-    <p>In either case, the algorithm must be invoked with <var
-    title="">text</var> as the <var title="">input</var>, and <var
-    title="">destination</var> as the <var
-    title="concept-frag-parse-context">context</var> element.</p>
-
-    <p>If this raises an exception, then abort these steps.</p>
-
-    <p>Otherwise, let <var title="">new children</var> be the nodes
-    returned.</p>
-
-   </li>
-
-   <li>
-
-    <p>Set the <code
-    title="dom-Node-ownerDocument">ownerDocument</code> of all the
-    nodes in <var title="">new children</var> to <var
-    title="">target</var>'s document.</p>
-
-   </li>
-
-   <li>
-
-    <p>Use the first matching item from this list:</p>
-
-    <dl>
-
-     <dt>If <var title="">position</var> is an <span>ASCII
-     case-insensitive</span> match for the string "beforebegin"</dt>
-
-     <dd>
-
-      <p>Insert all the <var title="">new children</var> nodes
-      immediately before <var title="">target</var>.</p>
-
-     </dd>
-
-     <dt>If <var title="">position</var> is an <span>ASCII
-     case-insensitive</span> match for the string "afterbegin"</dt>
-
-     <dd>
-
-      <p>Insert all the <var title="">new children</var> nodes before
-      the first child of <var title="">target</var>, if there is
-      one. If there is no such child, append them all to <var
-      title="">target</var>.</p>
-
-     </dd>
-
-     <dt>If <var title="">position</var> is an <span>ASCII
-     case-insensitive</span> match for the string "beforeend"</dt>
-
-     <dd>
-
-      <p>Append all the <var title="">new children</var> nodes to <var
-      title="">target</var>.</p>
-
-     </dd>
-
-     <dt>If <var title="">position</var> is an <span>ASCII
-     case-insensitive</span> match for the string "afterend"</dt>
-
-     <dd>
-
-      <p>Insert all the <var title="">new children</var> nodes
-      immediately after <var title="">target</var>.</p>
-
-     </dd>
-
-    </dl>
-
-    <p>The <var title="">new children</var> nodes must be inserted in
-    a manner that preserves their order and fires mutation events as
-    if a <code>DocumentFragment</code> containing the <var
-    title="">new children</var> had been inserted.</p>
-
-   </li>
-
-  </ol>
-
-  </div>
-
-
-
   <h2 id="semantics">The elements of HTML</h2>
 
   <h3>The root element</h3>
@@ -16902,7 +16440,7 @@
     <code>Document</code> that was created using the <code
     title="dom-DOMImplementation-createDocument">createDocument()</code>
     API. <a href="#refsXHR">[XHR]</a> <a
-    href="#refsDOMPARSER">[DOMPARSER]</a> <!--<a
+    href="#refsDOMPARSING">[DOMPARSING]</a> <!--<a
     href="#refsXSLTP">[XSLTP]</a>--> <a
     href="#refsDOMCORE">[DOMCORE]</a></p>
 
@@ -114810,11 +114348,11 @@
    Object Model (DOM) Level 3 Events Specification</a></cite>,
    D. Schepers. W3C.</dd>
 
-   <dt id="refsDOMPARSER">[DOMPARSER]</dt>
-   <dd>(Non-normative) <cite><a href="http://html5.org/specs/dom-parsing.html">DOM Parsing and Serialization</a></cite>, Ms2ger. html5.org.</dd>
+   <dt id="refsDOMPARSING">[DOMPARSING]</dt>
+   <dd><cite><a href="http://html5.org/specs/dom-parsing.html">DOM Parsing and Serialization</a></cite>, Ms2ger. html5.org.</dd>
 
    <dt id="refsDOMRANGE">[DOMRANGE]</dt>
-   <dd><cite><a href="http://html5.org/specs/dom-range.html">DOM Range</a></cite>, Ms2ger. html5.org.</dd>
+   <dd><cite><a href="http://html5.org/specs/dom-range.html">DOM Range</a></cite>, A. Gregor, Ms2ger. html5.org.</dd>
 
    <dt id="refsE163">[E163]</dt>
    <dd><cite>Recommendation E.163 &mdash; Numbering Plan for The International

|