Side navigation
#14355 closed bug (cantfix)
Opened September 12, 2013 03:28PM UTC
Closed September 29, 2013 08:58PM UTC
text method returns a bullet in IE11 RTM when used on a LI element more than one time
Reported by: | Bundyo | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This is an IE11 bug, but also affects jQuery, so I'm adding it here for a possible workaround in the library.
When textContent property is used more than once on a LI element, a bullet character is prepended to the text. This affects the text method, which also returns the bullet. innerText and outerText don't exhibit similar problems and may be used as a workaround.
Test case with textContent:
http://jsbin.com/EfiTijA/5/edit
Test case with jQuery text method:
http://jsbin.com/EfiTijA/4/edit
The actual element accessed doesn't matter.
Microsoft Connect bug:
https://connect.microsoft.com/IE/feedback/details/800389/using-textcontent-twice-on-a-li-element-returns-a-bullet-in-the-text