- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 02 Jun 2009 08:26:35 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv29680
Modified Files:
Overview.html
Log Message:
Make document.title collapse whitespace. (credit: roc) (whatwg r3179)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2332
retrieving revision 1.2333
diff -u -d -r1.2332 -r1.2333
--- Overview.html 2 Jun 2009 07:43:52 -0000 1.2332
+++ Overview.html 2 Jun 2009 08:26:31 -0000 1.2333
@@ -6917,15 +6917,22 @@
<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="#references">[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="#references">[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>
Received on Tuesday, 2 June 2009 08:26:40 UTC