Skip to content

Fix exception when handling invalid body element with no JS engine. #160

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

Merged

Conversation

shapiroronny
Copy link
Contributor

When handling body elements with 'on' event in invalid position and discarding them an exception is thrown. This safety check fixes it.

Copy link
Member

@rbri rbri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and please add an entry to the changes.xml

+ " <title>foo</title>"
+ "</head>"
+ "<body>"
+ " <body onLoad=\"ready()\">"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please use single quotes here.

@rbri rbri merged commit dc28665 into HtmlUnit:master Apr 19, 2020
shapiroronny added a commit to shapiroronny/htmlunit that referenced this pull request May 4, 2020
…tmlUnit#160)

Fix exception when handling invalid body element with no JS engine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants