[html5] r3179 - [] (0) Make document.title collapse whitespace. (credit: roc)
whatwg at whatwg.org
whatwg at whatwg.org
Tue Jun 2 01:26:28 PDT 2009
Author: ianh
Date: 2009-06-02 01:26:26 -0700 (Tue, 02 Jun 2009)
New Revision: 3179
Modified:
index
source
Log:
[] (0) Make document.title collapse whitespace. (credit: roc)
Modified: index
===================================================================
--- index 2009-06-02 07:43:47 UTC (rev 3178)
+++ index 2009-06-02 08:26:26 UTC (rev 3179)
@@ -7625,16 +7625,23 @@
<ol><li><p>If the <a href=#root-element>root element</a> is an <code>svg</code>
element in the "<code title="">http://www.w3.org/2000/svg</code>"
- namespace, and the user agent supports SVG, then the getter must
- return the value that would have been returned by the DOM attribute
- of the same name on the <code>SVGDocument</code> interface. <a href=#refsSVG>[SVG]</a></li>
+ namespace, and the user agent supports SVG, then return the value
+ that would have been returned by the DOM attribute of the same name
+ on the <code>SVGDocument</code> interface. <a href=#refsSVG>[SVG]</a></li>
- <li><p>Otherwise, it must return a concatenation of the data of all
- the child <a href=#text-node title="text node">text nodes</a> of <a href=#the-title-element-0>the
- <code>title</code> element</a>, in tree order, or the empty
- string if <a href=#the-title-element-0>the <code>title</code> element</a> is
- null.</li>
+ <li><p>Otherwise, let <var title="">value</var> be a concatenation
+ of the data of all the child <a href=#text-node title="text node">text
+ nodes</a> of <a href=#the-title-element-0>the <code>title</code> element</a>, in
+ tree order, or the empty string if <a href=#the-title-element-0>the <code>title</code>
+ element</a> is null.</li>
+ <li><p>Replace any sequence of two or more consecutive <a href=#space-character title="space character">space characters</a> in <var title="">value</var> with a single U+0020 SPACE character.</li>
+
+ <li><p>Remove any leading or trailing <a href=#space-character title="space
+ character">space characters</a> in <var title="">value</var>.</li>
+
+ <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>
Modified: source
===================================================================
--- source 2009-06-02 07:43:47 UTC (rev 3178)
+++ source 2009-06-02 08:26:26 UTC (rev 3179)
@@ -7773,17 +7773,27 @@
<li><p>If the <span>root element</span> is an <code>svg</code>
element in the "<code title="">http://www.w3.org/2000/svg</code>"
- namespace, and the user agent supports SVG, then the getter must
- return the value that would have been returned by the DOM attribute
- of the same name on the <code>SVGDocument</code> interface. <a
+ namespace, and the user agent supports SVG, then return the value
+ that would have been returned by the DOM attribute of the same name
+ on the <code>SVGDocument</code> interface. <a
href="#refsSVG">[SVG]</a></p></li>
- <li><p>Otherwise, it must return a concatenation of the data of all
- the child <span title="text node">text nodes</span> of <span>the
- <code>title</code> element</span>, in tree order, or the empty
- string if <span>the <code>title</code> element</span> is
- null.</p></li>
+ <li><p>Otherwise, let <var title="">value</var> be a concatenation
+ of the data of all the child <span title="text node">text
+ nodes</span> of <span>the <code>title</code> element</span>, in
+ tree order, or the empty string if <span>the <code>title</code>
+ element</span> is null.</p></li>
+ <li><p>Replace any sequence of two or more consecutive <span
+ title="space character">space characters</span> in <var
+ title="">value</var> with a single U+0020 SPACE character.</p></li>
+
+ <li><p>Remove any leading or trailing <span title="space
+ character">space characters</span> in <var
+ title="">value</var>.</p></li>
+
+ <li><p>Return <var title="">value</var>.</p></li>
+
</ol>
<p>On setting, the following algorithm must be run. Mutation events
More information about the Commit-Watchers
mailing list