[jQuery] Re: IE7 removes whitespace from HTML

2009-03-06 Thread brian
Does this work? alert($("foo\nbar").text()); (I'm in no mood to boot Windows just now, sorry ;-) On Fri, Mar 6, 2009 at 8:02 AM, Martijn Houtman wrote: > > On Mar 6, 12:20 pm, "martijn.hout...@gmail.com" > wrote: >> Just wanted to document this bug/feature in IE7: >> >> alert($("foo\nbar").ht

[jQuery] Re: IE7 removes whitespace from HTML

2009-03-06 Thread Martijn Houtman
On Mar 6, 12:20 pm, "martijn.hout...@gmail.com" wrote: > Just wanted to document this bug/feature in IE7: > > alert($("foo\nbar").html()); > > This gives "foo bar" in IE7 and "foo\nbar" in FF. It might be related > tohttp://groups.google.com/group/jquery-en/browse_thread/thread/6f03f58... > > I s