[html5] r4183 - [agiow] (0) Fix the definition of the title.text IDL attribute to be more consis [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Oct 19 18:14:37 PDT 2009
Author: ianh
Date: 2009-10-19 18:14:34 -0700 (Mon, 19 Oct 2009)
New Revision: 4183
Modified:
complete.html
index
source
Log:
[agiow] (0) Fix the definition of the title.text IDL attribute to be more consistent with script.text and with some implementations.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7804
Modified: complete.html
===================================================================
--- complete.html 2009-10-20 01:13:18 UTC (rev 4182)
+++ complete.html 2009-10-20 01:14:34 UTC (rev 4183)
@@ -10556,13 +10556,29 @@
<p>There must be no more than one <code><a href=#the-title-element-0>title</a></code> element per
document.</p>
- <p>The <code><a href=#the-title-element-0>title</a></code> element must not contain any
- elements.</p>
+ <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>
- <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.</p>
+ <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
Modified: index
===================================================================
--- index 2009-10-20 01:13:18 UTC (rev 4182)
+++ index 2009-10-20 01:14:34 UTC (rev 4183)
@@ -10385,13 +10385,29 @@
<p>There must be no more than one <code><a href=#the-title-element-0>title</a></code> element per
document.</p>
- <p>The <code><a href=#the-title-element-0>title</a></code> element must not contain any
- elements.</p>
+ <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>
- <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.</p>
+ <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
Modified: source
===================================================================
--- source 2009-10-20 01:13:18 UTC (rev 4182)
+++ source 2009-10-20 01:14:34 UTC (rev 4183)
@@ -10826,13 +10826,34 @@
<p>There must be no more than one <code>title</code> element per
document.</p>
- <p>The <code>title</code> element must not contain any
- elements.</p>
+ <dl class="domintro">
- <p>The <dfn 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.</p>
+ <dt><var title="">title</var> . <code title="dom-title-text">text</code> [ = <var title="">value</var> ]</dt>
+ <dd>
+
+ <p>Returns the contents of the element, ignoring child nodes that
+ aren't <span title="text node">text nodes</span>.</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
+ title="dom-title-text"><code>text</code></dfn> must return a
+ concatenation of the contents of all the <span title="text
+ node">text nodes</span> that are direct children of the
+ <code>title</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
More information about the Commit-Watchers
mailing list