Skip to content

Commit

Permalink
[agiow] (0) Fix the definition of the title.text IDL attribute to be …
Browse files Browse the repository at this point in the history
…more consistent with script.text and with some implementations.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7804

git-svn-id: http://svn.whatwg.org/webapps@4183 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 20, 2009
1 parent fe800ba commit 636b8fa
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 15 deletions.
26 changes: 21 additions & 5 deletions complete.html
Expand Up @@ -10556,12 +10556,28 @@ <h4 id=the-title-element-0><span class=secno>4.2.2 </span>The <dfn><code>title</
<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>

<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>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>
<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>

Expand Down
26 changes: 21 additions & 5 deletions index
Expand Up @@ -10385,12 +10385,28 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p&gt;
<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>

<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>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>
<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>

Expand Down
31 changes: 26 additions & 5 deletions source
Expand Up @@ -10826,12 +10826,33 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p>
<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">

<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>

<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>
</div>

<div class="example">

Expand Down

0 comments on commit 636b8fa

Please sign in to comment.