We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some websites generate DOM structures in a non-standard manner, leading to HTML files that cannot be rendered correctly and require manual fixes.
Example
//p[@class='head-detail author-detail']
Problem The browser cannot render a p element containing a nested ul. Change p to div to render it correctly.
p
ul
div
Environment
Request check if a p element contains any block elements, and replaces it with a div if necessary.
The text was updated successfully, but these errors were encountered:
The problem is that <div> is the tag of a block-level element and is also disallowed in a <p> tag. Only these tags are valid: https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#phrasing_content.
<div>
<p>
Sorry, something went wrong.
No branches or pull requests
Some websites generate DOM structures in a non-standard manner, leading to HTML files that cannot be rendered correctly and require manual fixes.
Example
//p[@class='head-detail author-detail']
Problem
The browser cannot render a
p
element containing a nestedul
. Changep
todiv
to render it correctly.Environment
Request
check if a
p
element contains any block elements, and replaces it with adiv
if necessary.The text was updated successfully, but these errors were encountered: