class Hatemile::Util::Html::HTMLDOMElement
The HTMLDOMElement
interface contains the methods for access of the HTML element.
@abstract
Public Instance Methods
Append a element child.
@abstract @param element [Hatemile::Util::Html::HTMLDOMElement] The element that
be inserted.
@return [Hatemile::Util::Html::HTMLDOMElement] This element.
# File lib/hatemile/util/html/html_dom_element.rb, line 101 def append_element(element) # Interface method end
Clone this element.
@abstract @return [Hatemile::Util::Html::HTMLDOMElement] The clone.
# File lib/hatemile/util/html/html_dom_element.rb, line 228 def clone_element # Interface method end
Returns the value of a attribute.
@abstract @param name [String] The name of attribute. @return [String] The value of the attribute or nil if the element not
contains the attribute.
# File lib/hatemile/util/html/html_dom_element.rb, line 48 def get_attribute(name) # Interface method end
Returns the children of this element.
@abstract @return [Array<Hatemile::Util::Html::HTMLDOMNode>] The children of
this element.
# File lib/hatemile/util/html/html_dom_element.rb, line 132 def get_children # Interface method end
Returns the elements children of this element.
@abstract @return [Array<Hatemile::Util::Html::HTMLDOMElement>] The elements
children of this element.
# File lib/hatemile/util/html/html_dom_element.rb, line 122 def get_children_elements # Interface method end
Returns the first element child of this element.
@abstract @return [Hatemile::Util::Html::HTMLDOMElement] The first element child
of this element.
# File lib/hatemile/util/html/html_dom_element.rb, line 189 def get_first_element_child # Interface method end
Returns the first node child of this element.
@abstract @return [Hatemile::Util::Html::HTMLDOMNode] The first node child of
this element.
# File lib/hatemile/util/html/html_dom_element.rb, line 209 def get_first_node_child # Interface method end
Returns the inner HTML code of this element.
@abstract @return [String] The inner HTML code of this element.
# File lib/hatemile/util/html/html_dom_element.rb, line 170 def get_inner_html # Interface method end
Returns the last element child of this element.
@abstract @return [Hatemile::Util::Html::HTMLDOMElement] The last element child
of this element.
# File lib/hatemile/util/html/html_dom_element.rb, line 199 def get_last_element_child # Interface method end
Returns the last node child of this element.
@abstract @return [Hatemile::Util::Html::HTMLDOMNode] The last node child of
this element.
# File lib/hatemile/util/html/html_dom_element.rb, line 219 def get_last_node_child # Interface method end
Returns the HTML code of this element.
@abstract @return [String] The HTML code of this element.
# File lib/hatemile/util/html/html_dom_element.rb, line 179 def get_outer_html # Interface method end
Returns the tag name of element.
@abstract @return [String] The tag name of element in uppercase letters.
# File lib/hatemile/util/html/html_dom_element.rb, line 37 def get_tag_name # Interface method end
Check that the element has an attribute.
@abstract @param name [String] The name of attribute. @return [Boolean] True if the element has the attribute or false if
the element not has the attribute.
# File lib/hatemile/util/html/html_dom_element.rb, line 80 def has_attribute?(name) # Interface method end
Check that the element has attributes.
@abstract @return [Boolean] True if the element has attributes or false if the
element not has attributes.
# File lib/hatemile/util/html/html_dom_element.rb, line 90 def has_attributes? # Interface method end
Check that the element has children.
@abstract @return [Boolean] True if the element has children or false if the
element not has children.
# File lib/hatemile/util/html/html_dom_element.rb, line 161 def has_children? # Interface method end
Check that the element has elements children.
@abstract @return [Boolean] True if the element has elements children or false
if the element not has elements children.
# File lib/hatemile/util/html/html_dom_element.rb, line 151 def has_children_elements? # Interface method end
Joins adjacent Text nodes.
@abstract @return [Hatemile::Util::Html::HTMLDOMElement] This element.
# File lib/hatemile/util/html/html_dom_element.rb, line 141 def normalize # Interface method end
Prepend a element child.
@abstract @param element [Hatemile::Util::Html::HTMLDOMElement] The element that
be inserted.
@return [Hatemile::Util::Html::HTMLDOMElement] This element.
# File lib/hatemile/util/html/html_dom_element.rb, line 112 def prepend_element(element) # Interface method end
Remove a attribute of element.
@abstract @param name [String] The name of attribute. @return [void]
# File lib/hatemile/util/html/html_dom_element.rb, line 69 def remove_attribute(name) # Interface method end
Create or modify a attribute.
@abstract @param name [String] The name of attribute. @param value [String] The value of attribute. @return [void]
# File lib/hatemile/util/html/html_dom_element.rb, line 59 def set_attribute(name, value) # Interface method end