Unexpected behavior when iterating over and manipulating detached nodes in jquery 1.9
|Reported by:||octatone||Owned by:||gibson042|
I have a convenience method that I use to wrap text elements in a html string in spans. In 1.8.3 and before it has worked as intended. I wanted to upgrade to 1.9.0, but am finding my function breaks and that manipulation on detached nodes and their child elements to not reflect correctly. Child elements seem to not be connected to the original node and any changes are not present on the parent.
I created an example case here:
In 1.8.3 all child text nodes are wrapped in spans. In 1.9 the result is that the html of the node is never changed and subsequently the returned result is not correct.
Change History (10)
comment:1 follow-up: ↓ 5 Changed 4 years ago by dmethvin
comment:5 in reply to: ↑ 1 Changed 4 years ago by gibson042
- Milestone changed from None to 1.9.1
- Owner set to gibson042
- Status changed from new to assigned
comment:7 Changed 4 years ago by Richard Gibson
- Resolution set to fixed
- Status changed from assigned to closed