Skip to content

Commit

Permalink
HTML::Documents are real people too
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Dec 29, 2011
1 parent 1d009f9 commit 2debf9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/webrat/core/xml.rb
Expand Up @@ -7,8 +7,7 @@ def self.document(stringlike) #:nodoc:
return stringlike.dom if stringlike.respond_to?(:dom)

case stringlike
when Nokogiri::HTML::Document
when Nokogiri::XML::NodeSet
when Nokogiri::HTML::Document, Nokogiri::XML::NodeSet
stringlike
else
stringlike = stringlike.body if stringlike.respond_to?(:body)
Expand Down

0 comments on commit 2debf9a

Please sign in to comment.