Sha256: 9bfb543944950c8b55754e07880a4fd370b659a36586acc7be4d65c5ef08de08

Contents?: true

Size: 785 Bytes

Versions: 3

Compression:

Stored size: 785 Bytes

Contents

=begin
    Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

module Arachni::Element
class Form
module Capabilities

# Extends {Arachni::Element::Capabilities::WithDOM} with {Form}-specific
# functionality.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
module WithDOM
    include Arachni::Element::Capabilities::WithNode
    include Arachni::Element::Capabilities::WithDOM

    # @return   [DOM]
    def dom
        return @dom if @dom
        return if !node || inputs.empty?
        super
    end

end

end
end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arachni-1.2.1 lib/arachni/element/form/capabilities/with_dom.rb
arachni-1.2 lib/arachni/element/form/capabilities/with_dom.rb
arachni-1.1 lib/arachni/element/form/capabilities/with_dom.rb