.clone() on empty Nodelist creates error in IE
Reported by Gilles Ruppert | November 23rd, 2009 @ 03:07 PM | in 1.7
IE 6, 7 & 8 display a warning if you are cloning an empty Nodelist. It breaks all subsequent code.
see attached test case:
Example 1: Nodelist with 1 element. Clones fine.
Example 2: Nodelist with 0 elements. Clone breaks the rest of the
page.
Example 3: (only executed if Example 2 is commented out): Nodelist
with 0 elements. Returns Nodelist if empty, else returns a clone.
This is my current work around.
Comments and changes to this ticket
-
Stephen Elson November 26th, 2009 @ 09:30 AM
- State changed from new to review
(from [931de0eebffa0b51232b40b60b240d56bfc058df]) dom: Fixed .clone() on empty NodeList in IE [#165 state:review] http://github.com/glow/glow1/commit/931de0eebffa0b51232b40b60b240d5...
-
Jake Archibald November 26th, 2009 @ 10:55 AM
- Assigned user set to Jake Archibald
- Tag changed from glow.dom.clone to defect, dom
- Milestone set to 1.7
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A JavaScript Library
People watching this ticket
Attachments
Referenced by
- 165 .clone() on empty Nodelist creates error in IE (from [931de0eebffa0b51232b40b60b240d56bfc058df]) dom: Fi...