You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have div with click event listener: <div id="1"></div>
And I construct new document with added div above previous one, so new document looks like:
<div></div>
<div id="1"></div>
So when i replace current document with new document, event listener is now on div without id, and div with id 1 has no event listener:
diff(document, newDoc);
But when div with id is above the newly added element, than the div keeps the event listener like expected:
<div id="1"></div>
<div></div>
The text was updated successfully, but these errors were encountered:
When I have div with click event listener:
<div id="1"></div>
And I construct new document with added div above previous one, so new document looks like:
So when i replace current document with new document, event listener is now on div without id, and div with id 1 has no event listener:
But when div with id is above the newly added element, than the div keeps the event listener like expected:
The text was updated successfully, but these errors were encountered: