Opened 11 years ago
Closed 11 years ago
#10127 closed bug (worksforme)
text() returns value with a space on the end of <li>s in ie7 - ie8+, ff, chrom, opera all do not.
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | manipulation | Version: | 1.6.2 |
Keywords: | ie6 ie7 ie8 | Cc: | |
Blocked by: | Blocking: |
Description
Spent an hour or so debugging some code which uses the .text() function on li's - take a look at the console output of this in ie7 vs different browsers: http://jsfiddle.net/gAGjk/3/
innerText is also returning the same thing, so I assume it's an ie7 DOM or js bug; either way, it would be nice for jQuery to realise this and present a consistent cross-browser behaviour.
Change History (2)
comment:1 Changed 11 years ago by
Component: | unfiled → manipulation |
---|---|
Milestone: | None → 1.next |
Priority: | undecided → low |
Status: | new → open |
comment:2 Changed 11 years ago by
Keywords: | ie6 ie7 ie8 added |
---|---|
Resolution: | → worksforme |
Status: | open → closed |
I can't repro this on IE8 with any version, they all show length of 26 chars. However, if there was a trailing space it would be in line with the documentation that indicates browsers deal with whitespace differently.
Note: See
TracTickets for help on using
tickets.
http://jsfiddle.net/timmywil/gAGjk/4/ Confirmed