- From: poot <cvsmail@w3.org>
- Date: Tue, 20 Oct 2009 10:02:15 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Fix the definition of the title.text IDL attribute to be more
consistent with script.text and with some implementations. (whatwg
r4183)
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3329&r2=1.3330&f=h
http://html5.org/tools/web-apps-tracker?from=4182&to=4183
===================================================================
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:44 UTC