W3C home > Mailing lists > Public > public-html-commits@w3.org > October 2009

html5/spec Overview.html,1.3329,1.3330

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 20 Oct 2009 01:02:08 +0000
To: public-html-commits@w3.org
Message-Id: <E1N0372-0002Ab-OF@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv8327

Modified Files:
	Overview.html 
Log Message:
Fix the definition of the title.text IDL attribute to be more consistent with script.text and with some implementations. (whatwg r4183)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3329
retrieving revision 1.3330
diff -u -d -r1.3329 -r1.3330
--- Overview.html	20 Oct 2009 01:00:49 -0000	1.3329
+++ Overview.html	20 Oct 2009 01:02:05 -0000	1.3330
@@ -9265,10 +9265,28 @@
   document's title is often different from its first heading, since the
   first heading does not have to stand alone when taken out of
   context.<p>There must be no more than one <code><a href="#the-title-element-0">title</a></code> element per
-  document.<p>The <code><a href="#the-title-element-0">title</a></code> element must not contain any
-  elements.<p>The <dfn id="dom-title-text" title="dom-title-text"><code>text</code></dfn> IDL
-  attribute must return the same value as the <code>textContent</code>
-  IDL attribute on the element.<div class="example">
+  document.<dl class="domintro"><dt><var title="">title</var> . <code title="dom-title-text"><a href="#dom-title-text">text</a></code> [ = <var title="">value</var> ]</dt>
+
+   <dd>
+
+    <p>Returns the contents of the element, ignoring child nodes that
+    aren't <a href="#text-node" title="text node">text nodes</a>.</p>
+
+    <p>Can be set, to replace the element's children with the given
+    value.</p>
+
+   </dd>
+
+  </dl><div class="impl">
+
+  <p>The IDL attribute <dfn id="dom-title-text" title="dom-title-text"><code>text</code></dfn> must return a
+  concatenation of the contents of all the <a href="#text-node" title="text
+  node">text nodes</a> that are direct children of the
+  <code><a href="#the-title-element-0">title</a></code> element (ignoring any other nodes such as
+  comments or elements), in tree order. On setting, it must act the
+  same way as the <code>textContent</code> IDL attribute.</p>
+
+  </div><div class="example">
 
    <p>Here are some examples of appropriate titles, contrasted with
    the top-level headings that might be used on those same pages.</p>
Received on Tuesday, 20 October 2009 01:02:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 20 October 2009 01:02:10 GMT