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

Update HTML4::DocumentFragment#initialize & #parse to take kwargs #3336

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MattJones
Copy link
Contributor

@MattJones MattJones commented Nov 14, 2024

What problem is this PR intended to solve?
#3323

Have you included adequate test coverage?
Yes and No. Test coverage is included for #parse. But the the DocumentFragment.new class method calls a C method, which is not getting touched here. Thus I can't add in tests using .new.
@flavorjones : you'll need to update the C code to accept keyword args. Then, you can update this call. Also you'll want to add some tests. I added two in test_document_fragment before I realized they wouldn't work. One for "without a context node" and one for "with a context node".

Does this change affect the behavior of either the C or the Java implementations?
I.... don't think so?

@MattJones MattJones changed the title Update HTML4::DocumentFragment#initialize to take kwargs Update HTML4::DocumentFragment#initialize & #parse to take kwargs Nov 15, 2024
@flavorjones flavorjones added the event/hackday2024 RubyConf 2024 Hack Day label Nov 15, 2024
@flavorjones flavorjones added this to the v1.17.0 milestone Nov 29, 2024
@flavorjones flavorjones self-assigned this Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event/hackday2024 RubyConf 2024 Hack Day
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants