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
1.8.1 breaks simple XML parsing #13444
Comments
|
What version of |
|
I tried with different containers, it breaks with containers tagged As discussed over Matrix, might be caused by the underlying libxml version: |
|
That link is wrong. The TL;DR: Your link only shows the commits which were added to This link shows the actual changes between the two versions: |
|
I tested this with This seems to be a documented (and purposeful) regression: v2.10.4: Apr 11 2023
[...]
### Regressions
- SAX2: Ignore namespaces in HTML documents
[...]When using <!-- Output from v2.10.3 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<body><foo>ThisIsFoo</foo>
<bar>ThisIsBar</bar></body>
</html>
<!-- Output from v2.10.4 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<body><foo>ThisIsFoo</foo>
<bug:bar>ThisIsBar</bug:bar></body>
</html>I'd say this issue can be closed, not really related to crystal. |
|
On second thought, we could possibly consider re-building/distributing new images/binaries with a patched version of libXML if we think that would be worthwhile. Granted we'll probably be limited on the available versions within the base images, and/or depending on how Crystal was installed might be up to the user to upgrade the version on their own machine. |
Bug Report
Hello,
The following code works fine witch crystal 1.8.0 but breaks with 1.8.1:
Crystal 1.8.0:
Crystal 1.8.1:
The text was updated successfully, but these errors were encountered: