-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
jsoup allows all tags to self-close, while browsers do not #1876
Comments
Feel free to close as a duplicate. I quite agree that what JSoup is doing seems eminently reasonable in the circumstances, but we are more concerned with interoperability and conformance than with usability. |
I will leave it open as the closest #1037 is closed, and this description is clear. |
(On review, closing as dupe of #917. I am thinking of addressing this by renovating how we hold properties in Tags, and allow configuration of self-closing / void tags. And then moving the HTML default back into spec.) |
JSoup appears to generate an incorrect DOM in response to the (erroneous) input
(The "/" in the video tag should be ignored; it should be treated as a start tag to be closed later.)
Chrome and Firefox, validator.nu and AngleSharp all put the script element as a child of the video element.
JSoup
leavesvideo
andscript
as siblings.The text was updated successfully, but these errors were encountered: