Skip to content
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

BUG: REXML accepts unclosed DOCTYPE #152

Closed
makenowjust opened this issue Jun 18, 2024 · 0 comments · Fixed by #153
Closed

BUG: REXML accepts unclosed DOCTYPE #152

makenowjust opened this issue Jun 18, 2024 · 0 comments · Fixed by #153

Comments

@makenowjust
Copy link
Contributor

makenowjust commented Jun 18, 2024

Currently, REXML accepts unclosed DOCTYPE declarations.

require "rexml/document"

REXML::Document.new("<!DOCTYPE foo [")
# => <UNDEFINED> ... </>
# No exceptions are raised!

It seems strange and it should be fixed.

makenowjust added a commit to makenowjust/rexml that referenced this issue Jun 18, 2024
@kou kou closed this as completed in #153 Jun 19, 2024
kou added a commit that referenced this issue Jun 19, 2024
Fix #152

---------

Co-authored-by: Sutou Kouhei <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant