Skip to main content

Bug Tracker

Side navigation

#10127 closed bug (worksforme)

Opened August 24, 2011 12:41PM UTC

Closed June 26, 2012 02:15AM UTC

text() returns value with a space on the end of <li>s in ie7 - ie8+, ff, chrom, opera all do not.

Reported by: callumrogers@hotmail.co.uk 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.

Attachments (0)
Change History (2)

Changed August 24, 2011 02:15PM UTC by timmywil comment:1

component: unfiledmanipulation
milestone: None1.next
priority: undecidedlow
status: newopen

Changed June 26, 2012 02:15AM UTC by dmethvin comment:2

keywords: → ie6 ie7 ie8
resolution: → worksforme
status: openclosed

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.