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

fix: IO handling in HTML4::DocumentFragment.parse #3298

Merged

Conversation

sharvy
Copy link
Contributor

@sharvy sharvy commented Aug 1, 2024

What problem is this PR intended to solve?
Previously an exception (TypeError: no implicit conversion of File into String) would be raised.

Fixes: #2069

Have you included adequate test coverage?
Yes.

Does this change affect the behavior of either the C or the Java implementations?
No.

@sharvy sharvy force-pushed the 2069-html4-document-fragment-io-parse branch from 34d50fa to 4358f67 Compare August 1, 2024 11:35
@flavorjones
Copy link
Member

@sharvy Nice! Thank you for putting this together. I kicked off CI and will review as soon as I get a chance. ♥

@sharvy
Copy link
Contributor Author

sharvy commented Aug 1, 2024

@flavorjones The pleasure is absolutely mine! Thanks.

Previously an exception (TypeError: no implicit conversion of File into String) would be raised.

Fixes: sparklemotion#2069
@flavorjones flavorjones force-pushed the 2069-html4-document-fragment-io-parse branch from 1728541 to 2510bf6 Compare August 5, 2024 14:18
@flavorjones
Copy link
Member

@sharvy This looks good! I corrected some things in the doc string but otherwise this is great! Thank you!

@flavorjones flavorjones force-pushed the 2069-html4-document-fragment-io-parse branch from 2510bf6 to bdac6c9 Compare August 5, 2024 14:22
@flavorjones flavorjones merged commit 084b37e into sparklemotion:main Aug 5, 2024
129 of 130 checks passed
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.

HTML::DocumentFragment.parse should be able to accept an IO object
2 participants