W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2008

[whatwg] whitespace compression in document.title

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 18 Aug 2008 13:57:44 +1200
Message-ID: <11e306600808171857s48d9349fk98dc3087c6faf801@mail.gmail.com>
IE7, FF3 and Opera 9.51 compress whitespace when getting document.title. \t
and \n (at least) are converted to spaces, runs of consecutive spaces are
compressed to a single space, and leading and trailing spaces are stripped.
Safari 3.1 follows the spec and does none of this.

We've got a report that not doing this processing messes up page titles on
last.fm. Of course we can fix page titles in tab and window decorations by
doing the processing in user interface code, but at first glance, it would
make more sense to change the spec to follow dominant UA behaviour.

"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20080818/7d67be44/attachment.htm>
Received on Sunday, 17 August 2008 18:57:44 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:04 UTC