Permalink
Browse files

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

  • Loading branch information...
1 parent 7e9b209 commit d41d9509b4de8fd97fc3e8342499ad9299238f86 @jvshahid jvshahid committed Oct 21, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 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}"

0 comments on commit d41d950

Please sign in to comment.