We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following program:
require 'nokogiri' class TestParser < Nokogiri::XML::SAX::Document def start_element(name, attrs = []) puts "Element: #{name}" end def characters(str) puts "Content: #{str}" end def end_element(name) puts "/#{name}" end end xml = "<?xml version='1.0'?><outter>start<inner>middle</inner>end</outter>" parser = Nokogiri::XML::SAX::Parser.new(TestParser.new) parser.parse(xml)
I would expect the output to be:
Element: outter Content: start Element: inner Content: middle /inner Content: end /outter
Instead it produces:
Element: outter Element: inner Content: middle /inner Content: startend /outter
Nokogiri 1.6.6.4 did not have this problem, but 1.6.7 does. MRI doesn't seem to exhibit the problem, either.
Please let me know if I can supply any more details.
Thank you.
The text was updated successfully, but these errors were encountered:
verified on master
Sorry, something went wrong.
This is fixed in current versions of Nokogiri. Closing.
No branches or pull requests
Given the following program:
I would expect the output to be:
Instead it produces:
Nokogiri 1.6.6.4 did not have this problem, but 1.6.7 does. MRI doesn't seem to exhibit the problem, either.
Please let me know if I can supply any more details.
Thank you.
The text was updated successfully, but these errors were encountered: