abstract class
XML::DOM::Node
- XML::DOM::Node
- Reference
- Object
Overview
TODO namespaces
Direct Known Subclasses
- XML::DOM::Attribute
- XML::DOM::CharacterData
- XML::DOM::Document
- XML::DOM::DocumentFragment
- XML::DOM::DocumentType
- XML::DOM::Element
- XML::DOM::Entity
- XML::DOM::EntityReference
- XML::DOM::Notation
Defined in:
dom/node.crdom/node/children.cr
Instance Method Summary
- #==(other : Node) : Bool
- #append(node : Node) : Nil
-
#canonicalize : Nil
Replaces cdata sections with a text node.
- #clone : self
- #each_child(& : Node -> ) : Nil
- #first_child : Node
- #first_child(&)
- #first_child? : Node | Nil
- #insert(node : Node, *, before : Node | Nil) : Nil
- #insert(node : Node, *, after : Node | Nil) : Nil
- #last_child : Node
- #last_child(&)
- #last_child? : Node | Nil
- #next_sibling : Node
- #next_sibling? : Node | Nil
-
#normalize : Nil
Merges contiguous text nodes into a single node.
- #owner_document : Document
- #parent_element : Element
- #parent_element? : Element | Nil
- #parent_node : Node
- #parent_node? : Node | Nil
- #previous_sibling : Node
- #previous_sibling? : Node | Nil
- #remove_child(node : Node) : Nil
- #replace_child(node : Node, *, child : Node) : Nil
- #root_element : Element
- #root_element? : Element | Nil
- #root_node : Node
- #root_node? : Node | Nil
- #text_content(str : String::Builder) : Nil
- #text_content : String | Nil
Instance Method Detail
def canonicalize : Nil
#
Replaces cdata sections with a text node. Merges contiguous text nodes into a single node. Removes comment nodes. Applies to the whole subtree.
def normalize : Nil
#
Merges contiguous text nodes into a single node. Applies to the whole subtree.