content
Contained node.
protected Nodestatic final shortprotected AttValstatic final shortprotected booleanstatic final shortprotected Nodestatic final shortprotected Stringprotected intstatic final shortprotected booleanstatic final shortprotected Nodeprotected booleanprotected Nodeprotected Nodestatic final shortprotected Nodestatic final shortstatic final shortstatic final shortprotected intstatic final shortstatic final shortprotected Dictstatic final shortprotected byte[]protected shortprotected Dictstatic final shortvoidaddAttribute(String name,
String value) voidvoidcheckAttributes(Lexer lexer) booleanprotected NodecloneNode(boolean deep) static voidcoerceNode(Lexer lexer,
Node node,
Dict tag) voidstatic NodediscardElement(Node element) protected static Nodebooleanstatic voidfixEmptyRow(Lexer lexer,
Node row) protected NodegetAttrByName(String name) booleanstatic voidinsertDocType(Lexer lexer,
Node element,
Node doctype) static booleaninsertMisc(Node element,
Node node) voidinsertNodeAfterElement(Node node) static voidinsertNodeAsParent(Node element,
Node node) voidinsertNodeAtEnd(Node node) voidinsertNodeAtStart(Node node) static voidinsertNodeBeforeElement(Node element,
Node node) booleanbooleanisDescendantOf(Dict tag) booleanbooleanbooleanstatic voidmoveBeforeTable(Node row,
Node node,
TagTable tt) voidremoveAttribute(AttVal attr) voidvoidrepairDuplicateAttributes(Lexer lexer) protected voidsetType(short newType) toString()static voidtrimEmptyElement(Lexer lexer,
Node element) static voidtrimInitialSpace(Lexer lexer,
Node element,
Node text) <p> hello <em> world </em> to <p> hello <em> world </em>.static voidtrimSpaces(Lexer lexer,
Node element) static voidtrimTrailingSpace(Lexer lexer,
Node element,
Node last) type - node type: Node.ROOT_NODE | Node.DOCTYPE_TAG | Node.COMMENT_TAG | Node.PROC_INS_TAG | Node.TEXT_NODE |
Node.START_TAG | Node.END_TAG | Node.START_END_TAG | Node.CDATA_TAG | Node.SECTION_TAG | Node. ASP_TAG |
Node.JSTE_TAG | Node.PHP_TAG | Node.XML_DECLtextarray - array of bytes contained in the Nodestart - start positionend - end positiontype - node type: Node.ROOT_NODE | Node.DOCTYPE_TAG | Node.COMMENT_TAG | Node.PROC_INS_TAG | Node.TEXT_NODE |
Node.START_TAG | Node.END_TAG | Node.START_END_TAG | Node.CDATA_TAG | Node.SECTION_TAG | Node. ASP_TAG |
Node.JSTE_TAG | Node.PHP_TAG | Node.XML_DECLtextarray - array of bytes contained in the Nodestart - start positionend - end positionelement - tag namett - tag table instancename - attribute name.lexer - Lexerlexer - Lexername - attribute namevalue - attribute valueattr - attribute to removeelement - discarded nodenode - to insertnode - Node to insertelement - child node. Will be inserted as a child of elementnode - parent nodeelement - child node. Will be insertedbefore elementnode - following nodenode - new node to insertlexer - Lexerelement - empty node to be removedlexer - Lexerelement - nodelast - last child of elementlexer - Lexerelement - node to be escapedlexer - Lexertrue if the node content empty or blank<p> hello <em> world </em> to <p> hello <em> world </em>.
Trims initial space, by moving it before the start tag, or if this element is the first in parent's content, then
by discarding the space.lexer - Lexerelement - parent nodetext - text nodelexer - Lexerelement - Nodetag - descendant tagtrue if node is contained in taglexer - Lexerelement - documentdoctype - doctype node to insert at the beginning of elementtt - tag tabletrue if type is START_TAG | START_END_TAGrow - Row nodenode - Node which should be moved before the tablett - tag tablelexer - Lexerrow - row nodelexer - Lexernode - Nodetag - tag dictionary referenceelement - parent nodenode - will be inserted at the end of elementtrue if the node has been insertedtrue if this node represents a user-defined tag.true if the node has one childtt - tag tablett - tag tableclassname - css class namedeep - if true deep clone the node (also clones all the contained nodes)newType - a valid node type constanttrue if the script node contains javascriptfalse if this node should be empty