C# Class Tidy.Core.Node

Node (c) 1998-2000 (W3C) MIT, INRIA, Keio University See Tidy.cs for the copyright notice. Derived from HTML Tidy Release 4 Aug 2000
Used for elements and text nodes element name is null for text nodes start and end are offsets into lexbuf which contains the textual content of all elements in the parse tree. parent and content allow traversal of the parse tree in any direction. attributes are represented as a linked list of AttVal nodes which hold the strings for attribute/value pairs.
Mostra file Open project: r1pper/TidyNetPortable Class Usage Examples

Protected Properties

Property Type Description
adapter INode
element string
type short

Public Methods

Method Description
AddAttribute ( string name, string val ) : void
AddClass ( Node node, string classname ) : void
CheckAttributes ( Lexer lexer ) : void
CheckNodeIntegrity ( ) : bool
CheckUniqueAttributes ( Lexer lexer ) : void
CoerceNode ( Lexer lexer, Node node, Dict tag ) : void
DiscardDocType ( ) : void
DiscardElement ( Node element ) : Node
FindBody ( TagCollection tt ) : Node
FindDocType ( ) : Node
FindHead ( TagCollection tt ) : Node
FindHtml ( TagCollection tt ) : Node
FixEmptyRow ( Lexer lexer, Node row ) : void
GetAttrByName ( string name ) : AttVal
HasOneChild ( ) : bool
InsertDocType ( Lexer lexer, Node element, Node doctype ) : void
InsertMisc ( Node element, Node node ) : bool
InsertNodeAfterElement ( Node element, Node node ) : void
InsertNodeAsParent ( Node element, Node node ) : void
InsertNodeAtEnd ( Node element, Node node ) : void
InsertNodeAtStart ( Node element, Node node ) : void
InsertNodeBeforeElement ( Node element, Node node ) : void
IsDescendantOf ( Dict tag ) : bool
IsNewNode ( Node node ) : bool
MoveBeforeTable ( Node row, Node node, TagCollection tt ) : void
Node ( ) : System
Node ( short type, byte textarray, int start, int end ) : System
Node ( short type, byte textarray, int start, int end, string element, TagCollection tt ) : System
RemoveAttribute ( AttVal attr ) : void
RemoveNode ( Node node ) : void
ToString ( ) : string
TrimEmptyElement ( Lexer lexer, Node element ) : void
TrimInitialSpace ( Lexer lexer, Node element, Node text ) : void
TrimSpaces ( Lexer lexer, Node element ) : void
TrimTrailingSpace ( Lexer lexer, Node element, Node last ) : void

Protected Methods

Method Description
Clone ( ) : object
CloneNode ( bool deep ) : Node

Method Details

AddAttribute() public method

public AddAttribute ( string name, string val ) : void
name string
val string
return void

AddClass() public static method

public static AddClass ( Node node, string classname ) : void
node Node
classname string
return void

CheckAttributes() public method

public CheckAttributes ( Lexer lexer ) : void
lexer Lexer
return void

CheckNodeIntegrity() public method

public CheckNodeIntegrity ( ) : bool
return bool

CheckUniqueAttributes() public method

public CheckUniqueAttributes ( Lexer lexer ) : void
lexer Lexer
return void

Clone() protected method

protected Clone ( ) : object
return object

CloneNode() protected method

protected CloneNode ( bool deep ) : Node
deep bool
return Node

CoerceNode() public static method

public static CoerceNode ( Lexer lexer, Node node, Dict tag ) : void
lexer Lexer
node Node
tag Dict
return void

DiscardDocType() public method

public DiscardDocType ( ) : void
return void

DiscardElement() public static method

public static DiscardElement ( Node element ) : Node
element Node
return Node

FindBody() public method

public FindBody ( TagCollection tt ) : Node
tt TagCollection
return Node

FindDocType() public method

public FindDocType ( ) : Node
return Node

FindHead() public method

public FindHead ( TagCollection tt ) : Node
tt TagCollection
return Node

FindHtml() public method

public FindHtml ( TagCollection tt ) : Node
tt TagCollection
return Node

FixEmptyRow() public static method

public static FixEmptyRow ( Lexer lexer, Node row ) : void
lexer Lexer
row Node
return void

GetAttrByName() public method

public GetAttrByName ( string name ) : AttVal
name string
return AttVal

HasOneChild() public method

public HasOneChild ( ) : bool
return bool

InsertDocType() public static method

public static InsertDocType ( Lexer lexer, Node element, Node doctype ) : void
lexer Lexer
element Node
doctype Node
return void

InsertMisc() public static method

public static InsertMisc ( Node element, Node node ) : bool
element Node
node Node
return bool

InsertNodeAfterElement() public static method

public static InsertNodeAfterElement ( Node element, Node node ) : void
element Node
node Node
return void

InsertNodeAsParent() public static method

public static InsertNodeAsParent ( Node element, Node node ) : void
element Node
node Node
return void

InsertNodeAtEnd() public static method

public static InsertNodeAtEnd ( Node element, Node node ) : void
element Node
node Node
return void

InsertNodeAtStart() public static method

public static InsertNodeAtStart ( Node element, Node node ) : void
element Node
node Node
return void

InsertNodeBeforeElement() public static method

public static InsertNodeBeforeElement ( Node element, Node node ) : void
element Node
node Node
return void

IsDescendantOf() public method

public IsDescendantOf ( Dict tag ) : bool
tag Dict
return bool

IsNewNode() public static method

public static IsNewNode ( Node node ) : bool
node Node
return bool

MoveBeforeTable() public static method

public static MoveBeforeTable ( Node row, Node node, TagCollection tt ) : void
row Node
node Node
tt TagCollection
return void

Node() public method

public Node ( ) : System
return System

Node() public method

public Node ( short type, byte textarray, int start, int end ) : System
type short
textarray byte
start int
end int
return System

Node() public method

public Node ( short type, byte textarray, int start, int end, string element, TagCollection tt ) : System
type short
textarray byte
start int
end int
element string
tt TagCollection
return System

RemoveAttribute() public method

public RemoveAttribute ( AttVal attr ) : void
attr AttVal
return void

RemoveNode() public static method

public static RemoveNode ( Node node ) : void
node Node
return void

ToString() public method

public ToString ( ) : string
return string

TrimEmptyElement() public static method

public static TrimEmptyElement ( Lexer lexer, Node element ) : void
lexer Lexer
element Node
return void

TrimInitialSpace() public static method

public static TrimInitialSpace ( Lexer lexer, Node element, Node text ) : void
lexer Lexer
element Node
text Node
return void

TrimSpaces() public static method

public static TrimSpaces ( Lexer lexer, Node element ) : void
lexer Lexer
element Node
return void

TrimTrailingSpace() public static method

public static TrimTrailingSpace ( Lexer lexer, Node element, Node last ) : void
lexer Lexer
element Node
last Node
return void

Property Details

adapter protected_oe property

protected INode adapter
return INode

element protected_oe property

protected string element
return string

type protected_oe property

protected short type
return short