Class: Hatemile::Util::Html::HTMLDOMElement Abstract
- Inherits:
-
HTMLDOMNode
- Object
- HTMLDOMNode
- Hatemile::Util::Html::HTMLDOMElement
- Defined in:
- lib/hatemile/util/html/html_dom_element.rb
Overview
The HTMLDOMElement interface contains the methods for access of the HTML element.
Direct Known Subclasses
Instance Method Summary collapse
-
#append_element(element) ⇒ Hatemile::Util::Html::HTMLDOMElement
abstract
Append a element child.
-
#clone_element ⇒ Hatemile::Util::Html::HTMLDOMElement
abstract
Clone this element.
-
#get_attribute(name) ⇒ String
abstract
Returns the value of a attribute.
-
#get_children ⇒ Array<Hatemile::Util::Html::HTMLDOMNode>
abstract
Returns the children of this element.
-
#get_children_elements ⇒ Array<Hatemile::Util::Html::HTMLDOMElement>
abstract
Returns the elements children of this element.
-
#get_first_element_child ⇒ Hatemile::Util::Html::HTMLDOMElement
abstract
Returns the first element child of this element.
-
#get_first_node_child ⇒ Hatemile::Util::Html::HTMLDOMNode
abstract
Returns the first node child of this element.
-
#get_inner_html ⇒ String
abstract
Returns the inner HTML code of this element.
-
#get_last_element_child ⇒ Hatemile::Util::Html::HTMLDOMElement
abstract
Returns the last element child of this element.
-
#get_last_node_child ⇒ Hatemile::Util::Html::HTMLDOMNode
abstract
Returns the last node child of this element.
-
#get_outer_html ⇒ String
abstract
Returns the HTML code of this element.
-
#get_tag_name ⇒ String
abstract
Returns the tag name of element.
-
#has_attribute?(name) ⇒ Boolean
abstract
Check that the element has an attribute.
-
#has_attributes? ⇒ Boolean
abstract
Check that the element has attributes.
-
#has_children? ⇒ Boolean
abstract
Check that the element has children.
-
#has_children_elements? ⇒ Boolean
abstract
Check that the element has elements children.
-
#normalize ⇒ Hatemile::Util::Html::HTMLDOMElement
abstract
Joins adjacent Text nodes.
-
#prepend_element(element) ⇒ Hatemile::Util::Html::HTMLDOMElement
abstract
Prepend a element child.
-
#remove_attribute(name) ⇒ void
abstract
Remove a attribute of element.
-
#set_attribute(name, value) ⇒ void
abstract
Create or modify a attribute.
Methods inherited from HTMLDOMNode
#append_text, #get_data, #get_parent_element, #get_text_content, #insert_after, #insert_before, #prepend_text, #remove_node, #replace_node, #set_data
Instance Method Details
#append_element(element) ⇒ Hatemile::Util::Html::HTMLDOMElement
Append a element child.
101 102 103 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 101 def append_element(element) # Interface method end |
#clone_element ⇒ Hatemile::Util::Html::HTMLDOMElement
Clone this element.
228 229 230 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 228 def clone_element # Interface method end |
#get_attribute(name) ⇒ String
Returns the value of a attribute.
48 49 50 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 48 def get_attribute(name) # Interface method end |
#get_children ⇒ Array<Hatemile::Util::Html::HTMLDOMNode>
Returns the children of this element.
132 133 134 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 132 def get_children # Interface method end |
#get_children_elements ⇒ Array<Hatemile::Util::Html::HTMLDOMElement>
Returns the elements children of this element.
122 123 124 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 122 def get_children_elements # Interface method end |
#get_first_element_child ⇒ Hatemile::Util::Html::HTMLDOMElement
Returns the first element child of this element.
189 190 191 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 189 def get_first_element_child # Interface method end |
#get_first_node_child ⇒ Hatemile::Util::Html::HTMLDOMNode
Returns the first node child of this element.
209 210 211 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 209 def get_first_node_child # Interface method end |
#get_inner_html ⇒ String
Returns the inner HTML code of this element.
170 171 172 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 170 def get_inner_html # Interface method end |
#get_last_element_child ⇒ Hatemile::Util::Html::HTMLDOMElement
Returns the last element child of this element.
199 200 201 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 199 def get_last_element_child # Interface method end |
#get_last_node_child ⇒ Hatemile::Util::Html::HTMLDOMNode
Returns the last node child of this element.
219 220 221 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 219 def get_last_node_child # Interface method end |
#get_outer_html ⇒ String
Returns the HTML code of this element.
179 180 181 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 179 def get_outer_html # Interface method end |
#get_tag_name ⇒ String
Returns the tag name of element.
37 38 39 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 37 def get_tag_name # Interface method end |
#has_attribute?(name) ⇒ Boolean
Check that the element has an attribute.
80 81 82 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 80 def has_attribute?(name) # Interface method end |
#has_attributes? ⇒ Boolean
Check that the element has attributes.
90 91 92 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 90 def has_attributes? # Interface method end |
#has_children? ⇒ Boolean
Check that the element has children.
161 162 163 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 161 def has_children? # Interface method end |
#has_children_elements? ⇒ Boolean
Check that the element has elements children.
151 152 153 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 151 def has_children_elements? # Interface method end |
#normalize ⇒ Hatemile::Util::Html::HTMLDOMElement
Joins adjacent Text nodes.
141 142 143 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 141 def normalize # Interface method end |
#prepend_element(element) ⇒ Hatemile::Util::Html::HTMLDOMElement
Prepend a element child.
112 113 114 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 112 def prepend_element(element) # Interface method end |
#remove_attribute(name) ⇒ void
This method returns an undefined value.
Remove a attribute of element.
69 70 71 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 69 def remove_attribute(name) # Interface method end |
#set_attribute(name, value) ⇒ void
This method returns an undefined value.
Create or modify a attribute.
59 60 61 |
# File 'lib/hatemile/util/html/html_dom_element.rb', line 59 def set_attribute(name, value) # Interface method end |