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
If we manipulate the DOM while iterating over it, the iteration may skip
elements. At the moment the library uses two different workarounds for
this: iterate over a shallow copy of the list using iterator_to_array()
(handleNode(), handleAttributeBinding()), or defer the manipulation
until after the loop (handleIf()). stripEventHandlers() did neither and
therefore failed to remove consecutive event handlers; fix that using
the defer approach, as I think that’s slightly more efficient in this
case. Also use removeAttributeNode() while we’re at it so that PHP
doesn’t have to look up the attribute by its name again.
0 commit comments