Module: Arachni::Element::Capabilities::WithNode

Includes:
WithSource
Included in:
Form::Capabilities::WithDOM, Form::DOM, Link::Capabilities::WithDOM, Link::DOM, LinkTemplate::Capabilities::WithDOM, LinkTemplate::DOM
Defined in:
lib/arachni/element/capabilities/with_node.rb

Instance Attribute Summary

Attributes included from WithSource

#source

Instance Method Summary collapse

Methods included from WithSource

#dup, #initialize, #to_h, #to_rpc_data

Instance Method Details

#nodeNokogiri::XML::Element

Returns:

  • (Nokogiri::XML::Element)


19
20
21
22
# File 'lib/arachni/element/capabilities/with_node.rb', line 19

def node
    return if !@source
    Nokogiri::HTML.fragment( @source.dup ).children.first
end