Skip to content

Conversation

@y-yagi
Copy link
Contributor

@y-yagi y-yagi commented Apr 14, 2025

Currently, some methods' behavior(e.g. URI.parse) don't change when switching a parser. This is because some methods use DEFAULT_PARSER, but parser= doesn't change DEFAULT_PARSER.

This PR introduces a constant to keep a parser's instance and change it when switching a parser. Also, change to use it in methods.

Currently, some methods' behavior(e.g. `URI.parse`) don't change
when switching a parser. This is because some methods use
`DEFAULT_PARSER`, but `parser=` doesn't change `DEFAULT_PARSER`.

This PR introduces a constant to keep a parser's instance and
change it when switching a parser. Also, change to use it in
methods.
@hsbt hsbt merged commit d629c8c into ruby:master Oct 31, 2025
26 checks passed
@y-yagi y-yagi deleted the fix_changing_parser branch October 31, 2025 01:26
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