Permalink
Browse files

HTML::Documents are real people too

  • Loading branch information...
1 parent 1d009f9 commit 2debf9afe029c37d4ff1722228cc5e34680c9c94 @indirect indirect committed Dec 29, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/webrat/core/xml.rb
View
@@ -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)

0 comments on commit 2debf9a

Please sign in to comment.