class Hatemile::Util::Html::HTMLDOMElement

The HTMLDOMElement interface contains the methods for access of the HTML element.

@abstract

Public Instance Methods

append_element(element) click to toggle source

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_element() click to toggle source

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
get_attribute(name) click to toggle source

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
get_children() click to toggle source

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
get_children_elements() click to toggle source

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
get_first_element_child() click to toggle source

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
get_first_node_child() click to toggle source

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
get_inner_html() click to toggle source

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
get_last_element_child() click to toggle source

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
get_last_node_child() click to toggle source

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
get_outer_html() click to toggle source

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
get_tag_name() click to toggle source

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
has_attribute?(name) click to toggle source

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
has_attributes?() click to toggle source

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
has_children?() click to toggle source

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
has_children_elements?() click to toggle source

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
normalize() click to toggle source

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_element(element) click to toggle source

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_attribute(name) click to toggle source

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
set_attribute(name, value) click to toggle source

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