Skip to content

Commit

Permalink
add documentation to point to the issue that required the changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshahid committed Oct 21, 2012
1 parent 7e9b209 commit d41d950
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/nokogiri/xml/document_fragment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit d41d950

Please sign in to comment.