HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
653211204Remove bits now specced in DOMPARSING spec.2011-09-04 17:28
@@ -2782,20 +2782,30 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
 
      <li><dfn title="dom-Range-collapsed"><code>collapsed</code></dfn> attribute </li>
      <li><dfn title="dom-Range-endContainer"><code>endContainer</code></dfn> attribute </li>
      <li><dfn title="dom-Range-endOffset"><code>endOffset</code></dfn> attribute </li>
      <li><dfn title="dom-Range-startContainer"><code>startContainer</code></dfn> attribute </li>
      <li><dfn title="dom-Range-startOffset"><code>startOffset</code></dfn> attribute </li>
 
     </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>
 
    <dd>
 
     <p>This specification uses the following interfaces defined in the
     File API specification: <a href="#refsFILEAPI">[FILEAPI]</a></p>
 
     <ul class="brief">
@@ -9202,21 +9212,20 @@ interface <dfn>HTMLDocument</dfn> {
   readonly attribute <span>HTMLCollection</span> <span title="dom-document-embeds">embeds</span>;
   readonly attribute <span>HTMLCollection</span> <span title="dom-document-plugins">plugins</span>;
   readonly attribute <span>HTMLCollection</span> <span title="dom-document-links">links</span>;
   readonly attribute <span>HTMLCollection</span> <span title="dom-document-forms">forms</span>;
   readonly attribute <span>HTMLCollection</span> <span title="dom-document-scripts">scripts</span>;
   NodeList <span title="dom-document-getElementsByName">getElementsByName</span>(DOMString elementName);
 <!--END w3c-html--><!--MD-->  NodeList <span title="dom-document-getItems">getItems</span>(optional DOMString typeNames); // <span>microdata</span> <!--WARNING: ALSO DUPLICATED IN MICRODATA SECTION--><!--START w3c-html--><!--MD-->
 <!--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>();
   void <span title="dom-document-write">write</span>(DOMString... text);
   void <span title="dom-document-writeln">writeln</span>(DOMString... text);
 
   // <span>user interaction</span>
   readonly attribute <span>WindowProxy</span>? <span title="dom-document-defaultView">defaultView</span>;
   readonly attribute <span>Element</span>? <span title="dom-document-activeElement">activeElement</span>;
   boolean <span title="dom-document-hasFocus">hasFocus</span>();
@@ -10385,25 +10394,20 @@ interface <dfn>XMLDocumentLoader</dfn> {
 
   <p class="example">For example, an <code>ol</code> element
   represents an ordered list.</p>
 
   <p>The basic interface, from which all the <span>HTML
   elements</span>' interfaces inherit, <span class="impl">and which
   must be used by elements that have no additional
   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>;
            attribute DOMString <span title="dom-lang">lang</span>;
            attribute DOMString <span title="dom-dir">dir</span>;
            attribute <span>DOMString</span> <span title="dom-className">className</span>;
   readonly attribute <span>DOMTokenList</span> <span title="dom-classList">classList</span>;
   readonly attribute <span>DOMStringMap</span> <span title="dom-dataset">dataset</span>;
 
 <!--END w3c-html--><!--MD-->  // <span>microdata</span> <!--WARNING: ALSO DUPLICATED IN MICRODATA SECTION-->
@@ -13710,486 +13714,20 @@ plaintext     = *( %x0000-2029 / %x202F-10FFFF )
   title="dom-document-writeln"><code>document.writeln(...)</code></dfn>
   method, when invoked, must act as if the <code
   title="dom-document-write">document.write()</code> method had been
   invoked with the same argument(s), plus an extra argument consisting
   of a string containing a single line feed character (U+000A).</p>
 
   </div>
 
 
 
-  <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>
 
   <h4 id="the-html-element">The <dfn><code>html</code></dfn> element</h4>
 
   <dl class="element">
    <dt>Categories</dt>
    <dd>None.</dd>
@@ -16895,21 +16433,21 @@ c-end         = "-->"</pre>
     that, amongst others, the following scripts will not execute:
     scripts in <code>XMLHttpRequest</code>'s <code
     title="dom-XMLHttpRequest-responseXML">responseXML</code>
     documents, scripts in <code>DOMParser</code>-created documents,
     scripts in documents created by <code>XSLTProcessor</code>'s <code
     title="dom-XSLTProcessor-transformToDocument">transformToDocument</code>
     feature, and scripts that are first inserted by a script into a
     <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>
 
 
    </li>
 
    <li id="script-processing-for">
 
     <p>If the <code>script</code> element has an <code
     title="attr-script-event">event</code> attribute and a <code
@@ -114803,25 +114341,25 @@ if (s = prompt('What is your name?')) {
    <dd><cite><a
    href="http://www.w3.org/TR/DOM-Level-3-Events/">Document Object
    Model (DOM) Level 3 Events Specification</a></cite>,
    B. H&ouml;hrmann, P. Le Hegaret, T. Pixley. W3C.</dd>
    -->
    <dd><cite><a
    href="http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html">Document
    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
    Telephone Service</cite>, CCITT Blue Book, Fascicle II.2, pp. 128-134, November
    1988.</dd>
 
    <dt id="refsECMA262">[ECMA262]</dt>
    <dd><cite><a
    href="http://www.ecma-international.org/publications/standards/Ecma-262.htm">ECMAScript
    Language Specification</a></cite>. ECMA.</dd>

|