-
-
Notifications
You must be signed in to change notification settings - Fork 902
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
Add method #wrap to Nokogiri::XML::Element #1531
Conversation
The build for travis has failed since rvm 2.2.5 in mac OS is not installed .It is an issue as per travis-ci/travis-ci#6467 |
Hello! Thank you so much for submitting this! I'd love to add a I have a few suggestions, though, if you don't mind hearing me out. First, I realize that not every node type will be wrappable, but the fact that Which brings me to my second suggestion, which is to re-implement def wrap html
map { |node| node.wrap html }
end I apologize that I haven't replied before now. If you're not interested in making these changes, please let me know, because I think this is a good feature to have. |
@flavorjones I would love to make these changes.Will update my PR. |
@flavorjones i have made changes to the PR please have a look at it. |
Thanks for making the suggested changes. I'd like to take some time to look at |
@flavorjones any improvements on the PR |
and put them in: - test_node.rb - test_text.rb also added test coverage for this in - test_node_set.rb this is a follow-on commit to #1531 by @ethirajsrinivasan
I'm so sorry for my slow responses. This work needs to be rebased onto master to pass tests; I've done this at #1828. As soon as it goes green in CI, I'll merge it. |
Merging manually! Thank you again for your patience and for the great API improvement. Your contribution will be noted in the CHANGELOG. |
No description provided.