- From: poot <cvsmail@w3.org>
- Date: Tue, 2 Jun 2009 17:28:03 +0900 (JST)
- To: public-html-diffs@w3.org
Make document.title collapse whitespace. (credit: roc) (whatwg r3179)
Diffs for this change per section:
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2333.html#document.title
http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2332&r2=1.2333&f=h
http://html5.org/tools/web-apps-tracker?from=3178&to=3179
===================================================================
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:28:36 UTC