#8984 closed bug (fixed)
jQuery doesn't parse html from string correctly!
Reported by: | zeljko | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.6 |
Component: | core | Version: | git |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Fiddle:
Description:
When parsing HTML string contained in single DIV element jQuery should return one object. In particular case (see fiddle) jQuery returns more than one object. With jQuery version <= 1.5.2 everything works as expected.
Change History (5)
comment:1 Changed 12 years ago by
Component: | unfiled → core |
---|---|
Milestone: | 1.next → 1.6 |
Priority: | undecided → blocker |
Status: | new → open |
comment:3 Changed 12 years ago by
I made another fiddle when taking a closer look: http://jsfiddle.net/timmywil/FEK7F/6/
comment:4 Changed 12 years ago by
Strange thing is that you get only one object if you remove few html elements from template.
comment:5 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
Change check for skipping the initial quickExpr RegExp check. Fixes #8984.
Changeset: 86aa764f0b7b659fbd8eec9333d22c3a79bdfcd5
Note: See
TracTickets for help on using
tickets.
Hmm, seems like 1.6 has the leading/trailing newlines in there as text nodes. Marking as a blocker for now. Thanks for the reports and testing, zeljko!