StaticPCDATAThe list of tags chose content is not parsed (PCDATA)
StaticSELF_The list of self-closing tags
ProtectedaddThe adaptor for managing nodes
The node getting the attributes
The array of space, name, value1, value2, value3 as described above.
ProtectedaddThe adaptor for managing nodes
The node to add a comment to
The text for the comment node
The comment element
ProtectedaddThe adaptor for managing nodes
The node to add a text element to
The text for the text node
The text element
ProtectedallThe adaptor for managing nodes
The node to serialize
True when producing XML, false for HTML
The attribute list
ProtectedcheckCheck the contents of the parsed document and move html, head, and body tags into the document structure. That way, you can parse fragments or full documents and still get a valid document.
The adaptor for managing nodes
The document being checked
ProtectedcloseThe adaptor for managing nodes
The node to close
The close tag being processed
The first unclosed parent node
ProtectedgetChecks if the body has only one element child (as opposed to comments or text nodes) and returns that sole element (or null if none or more than one)
The adaptor for managing nodes
The body element being checked
The sole LiteElement child of the body, or null if none or more than one
ProtectedhandleThe adaptor for managing nodes
The node whose PCDATA content is being collected
The tag name being handled
The array of text/tag data for the document
ProtectedopenThe adaptor for managing nodes
The parent node for the tag
The tag being processed
The rest of the text/tag array
The node to which the next tag will be added
The attribute value to be HTML escaped
True if XML rules are to be used
The string with " replaced by entities
The text to be HTML escaped
The string with &, <, and > replaced by entities
The adaptor for managing nodes
The node to serialize
True when producing XML, false for HTML
The serialized element (like outerHTML)
The adaptor for managing nodes
The node whose innerHTML is needed
True if XML rules should be used (e.g., self-closing tags)
The serialized element (like innerHTML)
Implements a lightweight DOMParser replacement (Not perfect, but handles most well-formed HTML)