-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return an error when trying to decompose a node with html
tag
#87
Comments
Please provide an example that hangs.
Works fine for me ( |
Sure, here is my example that results in an infinite loop
Actually you're right that we can decompose the html node, but then there is an infinite loop because I think the attributes of the html node are kept after calling the decompose operation |
Your code will work if you switch to Why do you need to remove the @lexborisov What's the best way to handle this? I'm using |
I don't understand why I have to remove the html node at all?
Yes, you can. |
Hello, I believe it would be beneficial to generate an error message when we execute the command
node.decompose()
on a node that has thehtml
tag. Currently, the procedure freezes and does not produce any error messages.When dealing with a large number of HTML files, there are often some atypical ones containing an attribute we want to remove nodes with directly in the main HTML node. However, without any error messages, it is challenging to identify the source of the problem, making debugging a difficult process.
The text was updated successfully, but these errors were encountered: