///|
/// Kind of DOM node represented by `Node`.
pub(all) enum NodeKind {
Document
Fragment
Element
Text
Comment
Doctype
} derive(Debug, Eq)
///|
/// DOM node used for documents, fragments, elements, text, comments, and
/// doctypes.
///
/// Nodes are created with helpers such as `document`, `fragment`, `element`,
/// `text`, `comment`, and `doctype`.
pub(all) struct Node {
kind : NodeKind
name : String
ns : String?
attrs : Map[String, String?]
data : String
public_id : String?
system_id : String?
force_quirks : Bool
mut parsed_from_source : Bool
mut source_start_tag : String?
mut source_end_tag : String?
mut sanitize_escape_only : Bool
mut origin_offset : Int?
mut origin_line : Int?
mut origin_col : Int?
mut parent : Node?
children : Array[Node]
} derive(Debug)