#30 new
Victor

Element#cloneWithoutIDs should not assign empty string to id

Reported by Victor | November 19th, 2011 @ 02:09 PM

Current implementation of Element#cloneWithoutIDs just assigns empty string to clone.id, this may lead to unexpected behavior at least in Opera (element still has id attribute, and all cloned elements have the same empty identifier). I use

clone.writeAttribute({
  id: null
});

(maybe clone.removeAttribute("id"); will be more efficient).

No comments found

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 ยป

http://github.com/madrobby/scripty2

People watching this ticket

Pages