[whatwg] whitespace compression in document.title

Robert O'Callahan robert at ocallahan.org
Sun Aug 17 18:57:44 PDT 2008


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.

Rob
-- 
"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
53:5-6]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20080818/7d67be44/attachment-0001.htm>


More information about the whatwg mailing list