Skip to content

Conversation

@herwinw
Copy link
Member

@herwinw herwinw commented Apr 23, 2025

This one is similar to the LibXML parser, but uses the Nokogiri SAX parser under the hood. This library is already used in a lot of web projects and is easier to install in Windows than LibXML.
There is no direct dependency on the nokogiri gem, if the gem is not available the code will only error in case it is used.

Unfortunately, I could not find a way to enable the gem in the CI for the Windows tasks. It passes on the regular Windows runners, but fails on mingw/mswin, and I could not find a way to separate those two. If someone knows how to fix that, or how to install/compile Nokogiri on the latter two platforms, please go ahead and fix it.

This has been suggested/requested in https://bugs.ruby-lang.org/issues/9379, all the way back in 2014.

herwinw added 3 commits April 23, 2025 10:45
This one is similar to the LibXML parser, but uses the Nokogiri SAX parser under
the hood. This library is already used in a lot of web projects and is easier to
install in Windows than LibXML.
There is no direct dependency on the nokogiri gem, if the gem is not available
the code will only error in case it is used.
The old text was outdated, Expat parser has not been available for years.
It does pass the tests on the regular windows images, but mingw and mswin fail
in the compilation step of the nokogiri gem. This can probably be fixed by
installing the right development libraries, but I could not find out how.
@kou kou merged commit 3cfd053 into ruby:master Apr 23, 2025
27 checks passed
@kou
Copy link
Member

kou commented Apr 23, 2025

Thanks.

@herwinw herwinw deleted the nokogiri_parser branch April 24, 2025 04:35
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