content
Contained node.
protected Node
static final short
protected AttVal
static final short
protected boolean
static final short
protected Node
static final short
protected String
protected int
static final short
protected boolean
static final short
protected Node
protected boolean
protected Node
protected Node
static final short
protected Node
static final short
static final short
static final short
protected int
static final short
static final short
protected Dict
static final short
protected byte[]
protected short
protected Dict
static final short
void
addAttribute(String name,
String value)
void
void
checkAttributes(Lexer lexer)
boolean
protected Node
cloneNode(boolean deep)
static void
coerceNode(Lexer lexer,
Node node,
Dict tag)
void
static Node
discardElement(Node element)
protected static Node
boolean
static void
fixEmptyRow(Lexer lexer,
Node row)
protected Node
getAttrByName(String name)
boolean
static void
insertDocType(Lexer lexer,
Node element,
Node doctype)
static boolean
insertMisc(Node element,
Node node)
void
insertNodeAfterElement(Node node)
static void
insertNodeAsParent(Node element,
Node node)
void
insertNodeAtEnd(Node node)
void
insertNodeAtStart(Node node)
static void
insertNodeBeforeElement(Node element,
Node node)
boolean
boolean
isDescendantOf(Dict tag)
boolean
boolean
boolean
static void
moveBeforeTable(Node row,
Node node,
TagTable tt)
void
removeAttribute(AttVal attr)
void
void
repairDuplicateAttributes(Lexer lexer)
protected void
setType(short newType)
toString()
static void
trimEmptyElement(Lexer lexer,
Node element)
static void
trimInitialSpace(Lexer lexer,
Node element,
Node text)
<p> hello <em> world </em>
to <p> hello <em> world </em>
.static void
trimSpaces(Lexer lexer,
Node element)
static void
trimTrailingSpace(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