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

C14n fix and new parameters #563

Merged
merged 4 commits into from
Nov 17, 2011
Merged

C14n fix and new parameters #563

merged 4 commits into from
Nov 17, 2011

Conversation

me
Copy link

@me me commented Nov 8, 2011

I fixed the segfaults when using node selection block. Turns out the block_caller method was assuming that the node parameter is always an xmlNodePtr, when in fact it can also be an xmlNsPtr.

I also added parameters for the other xmlC14NExecute options (mode, inclusive_ns_prefixes and with_comments), and added a Node#canonicalize convenience method.

I think this fixes #226, so maybe we can finally have c14n support in Ruby! But please review the code, since it's the first time I'm working on Nokogiri.

tenderlove added a commit that referenced this pull request Nov 17, 2011
C14n fix and new parameters
@tenderlove tenderlove merged commit b2a6af5 into sparklemotion:master Nov 17, 2011
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.

Add c14n support
2 participants