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.
Afficher le fichier Open project: r1pper/TidyNetPortable Class Usage Examples

Protected Properties

Свойство Type Description
adapter INode
element string
type short

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Clone ( ) : object
CloneNode ( bool deep ) : Node

Method Details

AddAttribute() public méthode

public AddAttribute ( string name, string val ) : void
name string
val string
Résultat void

AddClass() public static méthode

public static AddClass ( Node node, string classname ) : void
node Node
classname string
Résultat void

CheckAttributes() public méthode

public CheckAttributes ( Lexer lexer ) : void
lexer Lexer
Résultat void

CheckNodeIntegrity() public méthode

public CheckNodeIntegrity ( ) : bool
Résultat bool

CheckUniqueAttributes() public méthode

public CheckUniqueAttributes ( Lexer lexer ) : void
lexer Lexer
Résultat void

Clone() protected méthode

protected Clone ( ) : object
Résultat object

CloneNode() protected méthode

protected CloneNode ( bool deep ) : Node
deep bool
Résultat Node

CoerceNode() public static méthode

public static CoerceNode ( Lexer lexer, Node node, Dict tag ) : void
lexer Lexer
node Node
tag Dict
Résultat void

DiscardDocType() public méthode

public DiscardDocType ( ) : void
Résultat void

DiscardElement() public static méthode

public static DiscardElement ( Node element ) : Node
element Node
Résultat Node

FindBody() public méthode

public FindBody ( TagCollection tt ) : Node
tt TagCollection
Résultat Node

FindDocType() public méthode

public FindDocType ( ) : Node
Résultat Node

FindHead() public méthode

public FindHead ( TagCollection tt ) : Node
tt TagCollection
Résultat Node

FindHtml() public méthode

public FindHtml ( TagCollection tt ) : Node
tt TagCollection
Résultat Node

FixEmptyRow() public static méthode

public static FixEmptyRow ( Lexer lexer, Node row ) : void
lexer Lexer
row Node
Résultat void

GetAttrByName() public méthode

public GetAttrByName ( string name ) : AttVal
name string
Résultat AttVal

HasOneChild() public méthode

public HasOneChild ( ) : bool
Résultat bool

InsertDocType() public static méthode

public static InsertDocType ( Lexer lexer, Node element, Node doctype ) : void
lexer Lexer
element Node
doctype Node
Résultat void

InsertMisc() public static méthode

public static InsertMisc ( Node element, Node node ) : bool
element Node
node Node
Résultat bool

InsertNodeAfterElement() public static méthode

public static InsertNodeAfterElement ( Node element, Node node ) : void
element Node
node Node
Résultat void

InsertNodeAsParent() public static méthode

public static InsertNodeAsParent ( Node element, Node node ) : void
element Node
node Node
Résultat void

InsertNodeAtEnd() public static méthode

public static InsertNodeAtEnd ( Node element, Node node ) : void
element Node
node Node
Résultat void

InsertNodeAtStart() public static méthode

public static InsertNodeAtStart ( Node element, Node node ) : void
element Node
node Node
Résultat void

InsertNodeBeforeElement() public static méthode

public static InsertNodeBeforeElement ( Node element, Node node ) : void
element Node
node Node
Résultat void

IsDescendantOf() public méthode

public IsDescendantOf ( Dict tag ) : bool
tag Dict
Résultat bool

IsNewNode() public static méthode

public static IsNewNode ( Node node ) : bool
node Node
Résultat bool

MoveBeforeTable() public static méthode

public static MoveBeforeTable ( Node row, Node node, TagCollection tt ) : void
row Node
node Node
tt TagCollection
Résultat void

Node() public méthode

public Node ( ) : System
Résultat System

Node() public méthode

public Node ( short type, byte textarray, int start, int end ) : System
type short
textarray byte
start int
end int
Résultat System

Node() public méthode

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
Résultat System

RemoveAttribute() public méthode

public RemoveAttribute ( AttVal attr ) : void
attr AttVal
Résultat void

RemoveNode() public static méthode

public static RemoveNode ( Node node ) : void
node Node
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

TrimEmptyElement() public static méthode

public static TrimEmptyElement ( Lexer lexer, Node element ) : void
lexer Lexer
element Node
Résultat void

TrimInitialSpace() public static méthode

public static TrimInitialSpace ( Lexer lexer, Node element, Node text ) : void
lexer Lexer
element Node
text Node
Résultat void

TrimSpaces() public static méthode

public static TrimSpaces ( Lexer lexer, Node element ) : void
lexer Lexer
element Node
Résultat void

TrimTrailingSpace() public static méthode

public static TrimTrailingSpace ( Lexer lexer, Node element, Node last ) : void
lexer Lexer
element Node
last Node
Résultat void

Property Details

adapter protected_oe property

protected INode adapter
Résultat INode

element protected_oe property

protected string element
Résultat string

type protected_oe property

protected short type
Résultat short