Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

HTML::Documents are real people too

  • Loading branch information...
commit 2debf9afe029c37d4ff1722228cc5e34680c9c94 1 parent 1d009f9
@indirect indirect authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/webrat/core/xml.rb
View
3  lib/webrat/core/xml.rb
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.