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
Looking at the code the remove() function uses a call to parentNode->removeChild($node). I briefly looked for a way to directly remove a node, but I'm not sure there is a way within php Dom besides removeChild(). I just wrapped my whole document in a
When doing the following, the div isn't removed from the html:
When doing
$objNode->filter('p')->remove();
the p-elements are correctly removed. Also when wrapping the div in another div it also works.So it seems that I cannot remove root elements, can I? At least a hint in the comment would've been nice ;-) Maybe the bug can be fixed.
The text was updated successfully, but these errors were encountered: