Side navigation
#795 closed bug (fixed)
Opened January 12, 2007 11:26PM UTC
Closed January 14, 2007 09:51PM UTC
Last modified June 19, 2007 08:48AM UTC
WEIRD new lines in PRE in IE7
Reported by: | Andrea Ercolino | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.1 |
Component: | core | Version: | 1.1 |
Keywords: | text pre | Cc: | |
Blocked by: | Blocking: |
Description
Trying Rev.1043 with Chili, it works as expected in FF, but not in IE.
WEIRD new lines appear in $('pre > code').text() They are weird because a newline each two disappears, with a pattern like this:
a bb ccc
becomes
abb ccc
The problem is related to the fact that Rev.1043.text() uses innerText in IE and it seems to return text with all the newLines stripped off.
DEMO (Rev.1043.text renamed text2):