#165 review
Gilles Ruppert

.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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A JavaScript Library

Shared Ticket Bins

People watching this ticket



Referenced by