C# Class JsonFx.BuildTools.HtmlDistiller.HtmlTag

Represents an HTML/XHTML tag
http://www.w3.org/TR/html401/ http://www.w3.org/TR/xhtml1/
显示文件 Open project: pocket-playlab/jsonfx-v1 Class Usage Examples

Public Methods

Method Description
CreateCloseTag ( ) : HtmlTag

Generates a closing tag which matches this tag

CreateOpenTag ( ) : HtmlTag

Generates an open tag which matches this tag

Equals ( object obj ) : bool
GetHashCode ( ) : int
HtmlTag ( string name, IHtmlFilter filter ) : System

Ctor.

ToString ( ) : string

Renders the tag without filtering.

Private Methods

Method Description
CloseTagRequired ( string tag ) : bool

Determines if the tag is required to be closed (in HTML 4.01)

http://www.w3.org/TR/html401/index/elements.html http://www.w3.org/TR/WD-html40-970917/index/elements.html

FullTagRequired ( string tag ) : bool

Determines if is full (i.e. empty) tag

http://www.w3.org/TR/html401/index/elements.html http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#sec_5.2. http://www.w3.org/TR/WD-html40-970917/index/elements.html

GetTaxonomy ( string tag ) : HtmlTaxonomy

SetFullTag ( ) : void

Changes a BeginTag to a FullTag

Method Details

CreateCloseTag() public method

Generates a closing tag which matches this tag
public CreateCloseTag ( ) : HtmlTag
return HtmlTag

CreateOpenTag() public method

Generates an open tag which matches this tag
public CreateOpenTag ( ) : HtmlTag
return HtmlTag

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

HtmlTag() public method

Ctor.
public HtmlTag ( string name, IHtmlFilter filter ) : System
name string
filter IHtmlFilter
return System

ToString() public method

Renders the tag without filtering.
public ToString ( ) : string
return string