Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add documentation to point to the issue that required the changes.

  • Loading branch information...
commit d41d9509b4de8fd97fc3e8342499ad9299238f86 1 parent 7e9b209
@jvshahid jvshahid authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/nokogiri/xml/document_fragment.rb
View
2  lib/nokogiri/xml/document_fragment.rb
@@ -13,6 +13,7 @@ def initialize document, tags = nil, ctx = nil
children = if ctx
# Fix for issue#490
if Nokogiri.jruby?
+ # fix for issue #770
ctx.parse("<root #{namespace_declarations(ctx)}>#{tags}</root>").children
else
ctx.parse(tags)
@@ -93,6 +94,7 @@ def parse tags
private
+ # fix for issue 770
def namespace_declarations ctx
ctx.namespace_scopes.map do |namespace|
prefix = namespace.prefix.nil? ? "" : ":#{namespace.prefix}"
Please sign in to comment.
Something went wrong with that request. Please try again.