Re: [whatwg] whitespace compression in document.title

2009-06-02 Thread Ian Hickson
On Mon, 18 Aug 2008, Robert O'Callahan wrote:
> On Mon, Aug 18, 2008 at 2:19 PM, Ian Hickson  wrote:
> > On Mon, 18 Aug 2008, Robert O'Callahan wrote:
> > >
> > > 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.
> >
> > Do you mean for the purposes of the interface? Or in the API?
> 
> The API, if I understand your question correctly. To be precise: the
> rendering of this tescase:
> 
> 
>   
> Hello   Kitty
> Kitty
> 
> 
> Title: 
> 
> document.getElementById("s").innerHTML = document.title;
> 

Done.

-- 
Ian Hickson   U+1047E)\._.,--,'``.fL
http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


Re: [whatwg] whitespace compression in document.title

2008-08-17 Thread Robert O'Callahan
On Mon, Aug 18, 2008 at 2:19 PM, Ian Hickson <[EMAIL PROTECTED]> wrote:

> On Mon, 18 Aug 2008, Robert O'Callahan wrote:
> >
> > 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.
>
> Do you mean for the purposes of the interface? Or in the API?
>

The API, if I understand your question correctly. To be precise: the
rendering of this tescase:


  
Hello   Kitty
Kitty


Title: 

document.getElementById("s").innerHTML = document.title;


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]


Re: [whatwg] whitespace compression in document.title

2008-08-17 Thread Ian Hickson
On Mon, 18 Aug 2008, Robert O'Callahan wrote:
>
> 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.

Do you mean for the purposes of the interface? Or in the API?

-- 
Ian Hickson   U+1047E)\._.,--,'``.fL
http://ln.hixie.ch/   U+263A/,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'