[html5] r8404 - [giow] (3) Update document.title to work like textContent (also defines how thin [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Jan 16 14:52:49 PST 2014


Author: ianh
Date: 2014-01-16 14:52:49 -0800 (Thu, 16 Jan 2014)
New Revision: 8404

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Update document.title to work like textContent (also defines how things work with mutation observers)
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=24224
Affected topics: DOM APIs

Modified: complete.html
===================================================================
--- complete.html	2014-01-16 19:14:43 UTC (rev 8403)
+++ complete.html	2014-01-16 22:52:49 UTC (rev 8404)
@@ -8772,6 +8772,8 @@
 
   <h4 id=dom-tree-accessors><span class=secno>3.1.3 </span><dfn>DOM tree accessors</dfn></h4>
 
+<!--CLEANUP-->
+
   <p><dfn id=the-html-element-0>The <code>html</code> element</dfn> of a document is the
   document's root element, if there is one and it's an
   <code><a href=#the-html-element>html</a></code> element, or null otherwise.</p>
@@ -8832,8 +8834,7 @@
 
    <li><p>Return <var title="">value</var>.</li>
 
-  </ol><p>On setting, the following algorithm must be run. Mutation events
-  must be fired as appropriate.</p>
+  </ol><p>On setting, the following algorithm must be run.</p>
 
   <ol><li><p>If the <a href=#root-element>root element</a> is an <code><a href=#svg>svg</a></code>
    element in the "<code title="">http://www.w3.org/2000/svg</code>"
@@ -8847,16 +8848,13 @@
    attribute must do nothing. Stop the algorithm here.</li>
 
    <li>If <a href=#the-title-element-0>the <code>title</code> element</a> is null, then a
-   new <code><a href=#the-title-element>title</a></code> element must be created and appended to
-   <a href=#the-head-element-0>the <code>head</code> element</a>. Let <var title="">element</var> be that element. Otherwise, let <var title="">element</var> be <a href=#the-title-element-0>the <code>title</code>
+   new <code><a href=#the-title-element>title</a></code> element must be created and <a href=#concept-node-append title=concept-node-append>appended</a> to
+   <a href=#the-head-element-0>the <code>head</code> element</a>; let <var title="">element</var> be the newly created element. Otherwise, let <var title="">element</var> be <a href=#the-title-element-0>the <code>title</code>
    element</a>.</li>
 
-   <li>The children of <var title="">element</var> (if any) must all
-   be removed.</li>
+   <li><p>Act as if the <code><a href=#textcontent>textContent</a></code> IDL attribute of <var title="">element</var> was
+   set to the new value being assigned.</li>
 
-   <li>A single <code><a href=#text>Text</a></code> node whose data is the new value
-   being assigned must be appended to <var title="">element</var>.</li>
-
   </ol><p>The <code title=dom-document-title><a href=#document.title>title</a></code> IDL attribute
   defined above must replace the attribute of the same name on the
   <code><a href=#document>Document</a></code> interface defined by the SVG specification

Modified: index
===================================================================
--- index	2014-01-16 19:14:43 UTC (rev 8403)
+++ index	2014-01-16 22:52:49 UTC (rev 8404)
@@ -8772,6 +8772,8 @@
 
   <h4 id=dom-tree-accessors><span class=secno>3.1.3 </span><dfn>DOM tree accessors</dfn></h4>
 
+<!--CLEANUP-->
+
   <p><dfn id=the-html-element-0>The <code>html</code> element</dfn> of a document is the
   document's root element, if there is one and it's an
   <code><a href=#the-html-element>html</a></code> element, or null otherwise.</p>
@@ -8832,8 +8834,7 @@
 
    <li><p>Return <var title="">value</var>.</li>
 
-  </ol><p>On setting, the following algorithm must be run. Mutation events
-  must be fired as appropriate.</p>
+  </ol><p>On setting, the following algorithm must be run.</p>
 
   <ol><li><p>If the <a href=#root-element>root element</a> is an <code><a href=#svg>svg</a></code>
    element in the "<code title="">http://www.w3.org/2000/svg</code>"
@@ -8847,16 +8848,13 @@
    attribute must do nothing. Stop the algorithm here.</li>
 
    <li>If <a href=#the-title-element-0>the <code>title</code> element</a> is null, then a
-   new <code><a href=#the-title-element>title</a></code> element must be created and appended to
-   <a href=#the-head-element-0>the <code>head</code> element</a>. Let <var title="">element</var> be that element. Otherwise, let <var title="">element</var> be <a href=#the-title-element-0>the <code>title</code>
+   new <code><a href=#the-title-element>title</a></code> element must be created and <a href=#concept-node-append title=concept-node-append>appended</a> to
+   <a href=#the-head-element-0>the <code>head</code> element</a>; let <var title="">element</var> be the newly created element. Otherwise, let <var title="">element</var> be <a href=#the-title-element-0>the <code>title</code>
    element</a>.</li>
 
-   <li>The children of <var title="">element</var> (if any) must all
-   be removed.</li>
+   <li><p>Act as if the <code><a href=#textcontent>textContent</a></code> IDL attribute of <var title="">element</var> was
+   set to the new value being assigned.</li>
 
-   <li>A single <code><a href=#text>Text</a></code> node whose data is the new value
-   being assigned must be appended to <var title="">element</var>.</li>
-
   </ol><p>The <code title=dom-document-title><a href=#document.title>title</a></code> IDL attribute
   defined above must replace the attribute of the same name on the
   <code><a href=#document>Document</a></code> interface defined by the SVG specification

Modified: source
===================================================================
--- source	2014-01-16 19:14:43 UTC (rev 8403)
+++ source	2014-01-16 22:52:49 UTC (rev 8404)
@@ -8475,6 +8475,8 @@
 
   <h4><dfn>DOM tree accessors</dfn></h4>
 
+<!--CLEANUP-->
+
   <p><dfn>The <code>html</code> element</dfn> of a document is the
   document's root element, if there is one and it's an
   <code>html</code> element, or null otherwise.</p>
@@ -8553,8 +8555,7 @@
 
   </ol>
 
-  <p>On setting, the following algorithm must be run. Mutation events
-  must be fired as appropriate.</p>
+  <p>On setting, the following algorithm must be run.</p>
 
   <ol>
 
@@ -8571,19 +8572,15 @@
    attribute must do nothing. Stop the algorithm here.</li>
 
    <li>If <span>the <code>title</code> element</span> is null, then a
-   new <code>title</code> element must be created and appended to
-   <span>the <code>head</code> element</span>. Let <var
-   data-x="">element</var> be that element. Otherwise, let <var
+   new <code>title</code> element must be created and <span data-x="concept-node-append">appended</span> to
+   <span>the <code>head</code> element</span>; let <var
+   data-x="">element</var> be the newly created element. Otherwise, let <var
    data-x="">element</var> be <span>the <code>title</code>
    element</span>.</li>
 
-   <li>The children of <var data-x="">element</var> (if any) must all
-   be removed.</li>
+   <li><p>Act as if the <code>textContent</code> IDL attribute of <var data-x="">element</var> was
+   set to the new value being assigned.</p></li>
 
-   <li>A single <code>Text</code> node whose data is the new value
-   being assigned must be appended to <var
-   data-x="">element</var>.</li>
-
   </ol>
 
   <p>The <code data-x="dom-document-title">title</code> IDL attribute




More information about the Commit-Watchers mailing list