Side navigation
#7127 closed bug (worksforme)
Opened October 07, 2010 05:50PM UTC
Closed December 13, 2010 02:18AM UTC
Last modified April 19, 2011 10:06AM UTC
clone() does not preserve whitespace nodes in IE8
Reported by: | esprehn | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | manipulation | Version: | 1.4.2 |
Keywords: | clone ie8 | Cc: | |
Blocked by: | Blocking: |
Description
Whitespace nodes are missing from cloned nodes in IE8 which breaks layout of inline elements.
Attachments (0)
Change History (7)
Changed October 07, 2010 06:52PM UTC by comment:1
priority: | undecided → low |
---|
Changed October 07, 2010 08:12PM UTC by comment:2
This is a pretty big problem. I've had to stop using clone entirely because something like <span>the</span> <span>fish</span> becomes "thefish" after cloning.
Changed October 14, 2010 05:55AM UTC by comment:3
status: | new → open |
---|
Changed October 30, 2010 09:23AM UTC by comment:4
Clone is not working in ie8
Changed November 12, 2010 02:40AM UTC by comment:5
milestone: | 1.4.3 |
---|
Resetting milestone to future.
Changed December 13, 2010 02:18AM UTC by comment:6
resolution: | → worksforme |
---|---|
status: | open → closed |
I’m not able to reproduce this issue. test case
Changed April 19, 2011 10:06AM UTC by comment:7
Reproduced in 1.5.2
Conditions described by esprehn above
I believe that the normalization of whitespace here was done to combat an issue IE had with cloneNodes where we're instead consolidating text nodes.
Leaving this bug open in case anyone has suggestions regarding a potential fix we haven't looked at yet.