Side navigation
#10864 closed bug (fixed)
Opened November 22, 2011 07:05PM UTC
Closed January 20, 2012 09:48PM UTC
Last modified March 13, 2012 03:15PM UTC
text() method on a document fragment always returns the empty string
Reported by: | rockhymas | Owned by: | rwaldron |
---|---|---|---|
Priority: | blocker | Milestone: | 1.7.2 |
Component: | manipulation | Version: | 1.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The following code used to work in 1.6.x, but no longer does (1.7 or 1.7.1)
See http://jsfiddle.net/9UcdC/ for repro. Just change the jquery version to 1.6 to see that it used to work.
frag = document.createDocumentFragment(); frag.appendChild(document.createTextNode('Always two there are')); alert($(frag).text())
Attachments (0)
Change History (5)
Changed November 22, 2011 07:19PM UTC by comment:1
Changed November 22, 2011 07:45PM UTC by comment:2
component: | unfiled → manipulation |
---|---|
milestone: | None → 1.7.2 |
priority: | undecided → high |
status: | new → open |
Changed January 16, 2012 05:24PM UTC by comment:3
owner: | → rwaldron |
---|---|
status: | open → assigned |
Changed January 20, 2012 09:35PM UTC by comment:4
priority: | high → blocker |
---|
Supporting tests: https://github.com/jquery/jquery/pull/661
Submitted pull request with fix at https://github.com/jquery/sizzle/pull/84