The following struck me at the JavaScript development.
If one uses the method appendChild () to another example, before using getElementById () (or PrototypeJS or JQuery function "$()") fetched from the DOM element insert in place or other document (another browser window), which is at the original place standing element deleted (!).
This is not a bug, but according DOM specification wanted.
If the
newChild is already in the tree, it is first removed.
should remain the element in the original location, is the first using the method cloneNode () to duplicate .
0 comments:
Post a Comment