C# Class WebMarkupMin.Core.Parsers.HtmlParser

HTML parser
Inheritance: MarkupParserBase
Mostrar archivo Open project: Taritsyn/WebMarkupMin Class Usage Examples

Public Methods

Method Description
HtmlParser ( HtmlParsingHandlers handlers ) : System

Constructs instance of HTML parser

Parse ( string content ) : void

Parses HTML content

Private Methods

Method Description
GetAttributeType ( string tagNameInLowercase, WebMarkupMin.Core.Parsers.HtmlTagFlags tagFlags, string attributeNameInLowercase, IList attributes ) : HtmlAttributeType

Gets a HTML attribute type

GetTagFlagsByName ( string tagNameInLowercase ) : WebMarkupMin.Core.Parsers.HtmlTagFlags

Gets a HTML tag flags by tag name

HtmlParser ( ) : System

Static constructor

ParseAttributes ( string tagName, string tagNameInLowercase, WebMarkupMin.Core.Parsers.HtmlTagFlags tagFlags, string attributesString, SourceCodeNodeCoordinates attributesCoordinates ) : IList

Parses a attributes

ParseEndIfConditionalComment ( HtmlConditionalCommentType type ) : void

Parses a End If conditional comment

ParseEndTag ( ) : void

Parses a end tag

ParseEndTag ( string tagName, string tagNameInLowercase ) : void

Parses a end tag

ParseIfConditionalComment ( string expression, HtmlConditionalCommentType type ) : void

Parses a If conditional comment

ParseStartTag ( string tagName, string tagNameInLowercase, string attributesString, SourceCodeNodeCoordinates attributesCoordinates, bool isEmptyTag ) : void

Parses a start tag

ProcessEmbeddedCode ( ) : void

Process a embedded code

ProcessEndTag ( ) : bool

Process a end tag

ProcessHiddenEndIfComment ( ) : bool

Process a hidden End If conditional comment

ProcessHiddenIfComment ( ) : bool

Process a hidden If conditional comments

ProcessRevealedEndIfComment ( ) : bool

Process a revealed End If conditional comment

ProcessRevealedIfComment ( ) : bool

Process a revealed If conditional comment

ProcessRevealedValidatingEndIfComment ( ) : bool

Process a revealed validating End If conditional comments

ProcessRevealedValidatingIfComment ( ) : bool

Process a revealed validating If conditional comments

ProcessStartTag ( ) : bool

Process a start tag

ProcessText ( ) : void

Process a text

ProcessXmlDeclaration ( ) : bool

Process a XML declaration

Method Details

HtmlParser() public method

Constructs instance of HTML parser
public HtmlParser ( HtmlParsingHandlers handlers ) : System
handlers HtmlParsingHandlers HTML parsing handlers
return System

Parse() public method

Parses HTML content
public Parse ( string content ) : void
content string HTML content
return void