lib/watir-webdriver/elements/input.rb in watir-webdriver-0.1.7 vs lib/watir-webdriver/elements/input.rb in watir-webdriver-0.1.8
- old
+ new
@@ -2,23 +2,9 @@
module Watir
class Input < HTMLElement
alias_method :readonly?, :read_only?
- #
- # @private
- #
- # subclasses can use this to validate the incoming element
- #
-
- def self.from(parent, element)
- unless element.tag_name == "input"
- raise TypeError, "can't create #{self} from #{element.inspect}"
- end
-
- new(parent, :element => element)
- end
-
def enabled?
!disabled?
end
#