C# Class LayoutFarm.WebDom.Parser.HtmlTagMatching

ファイルを表示 Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
CanAutoClose ( int nameIndex ) : bool

test if tag can auto close when there is no more content in the parent element

CanAutoClose ( int nameIndex, int nextNodeNameIndex ) : bool
IsSingleTag ( int nameIndex ) : bool

Is the given html tag is single tag or can have content.

Private Methods

Method Description
HtmlTagMatching ( ) : System

Method Details

CanAutoClose() public static method

test if tag can auto close when there is no more content in the parent element
public static CanAutoClose ( int nameIndex ) : bool
nameIndex int
return bool

CanAutoClose() public static method

public static CanAutoClose ( int nameIndex, int nextNodeNameIndex ) : bool
nameIndex int
nextNodeNameIndex int
return bool

IsSingleTag() public static method

Is the given html tag is single tag or can have content.
public static IsSingleTag ( int nameIndex ) : bool
nameIndex int
return bool