-
-
Notifications
You must be signed in to change notification settings - Fork 901
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
"Document already has a root node" while using Builder #646
Comments
By investigation, JRuby might be wrong with block processing. I changed the test as in below and added some puts statement in node.rb/builder.rb. This is becasuse there's no line to be a good breakpoint in Java code.
libxml version create:
while JRuby created:
then raised an error. |
Oh, well, comment helps. I found this in XmlNode.java
This case is the one. So, post processing is needed. |
I get this issue when using standard MRI/YARV. Any other random document I read in responds normally to #root (and not as if you're trying to assign), just seems to be builder as you've identified. Code
Error
Nokogiri (1.5.0)
(breaks on 1.8.7 too) |
@msavy - you're seeing something very different than this issue was opened to address; and it's not a bug. The variable you've named See http://nokogiri.org/Nokogiri/XML/Builder.html for supporting documentation, but Builder understands If you call |
This bug was found while investigating issue #641
raised:
The text was updated successfully, but these errors were encountered: