C# Class Microsoft.Html.Core.Tree.Builder.DefaultHtmlClosureProvider

Default element closure information provider for HTML. Implements IHtmlClosureProviderTextRange which allows passing of ITextProvider + TextRange instead of extracting strings for comparison This is a frequently used class and performance improvement is welcome.
Inheritance: IHtmlClosureProvider, IHtmlClosureProviderTextRange
Mostra file Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
DefaultHtmlClosureProvider ( ) : System
IsImplicitlyClosed ( ITextProvider text, ITextRange name, string &containerElementNames ) : bool

Determines if given element can be implicitly closed like <li> or <td> in HTML"

IsSelfClosing ( ITextProvider text, ITextRange nameRange ) : bool

Determines if given element is self-closing (i.e. does not allow content)

Private Methods

Method Description
AddElements ( string addTo, string elementNames ) : void
FindElementName ( ITextProvider text, ITextRange name, string indexArray, bool ignoreCase ) : bool
GetContainerElements ( string elementName ) : string[]
IHtmlClosureProvider ( string name ) : bool
IHtmlClosureProvider ( string name, string &containerElementNames ) : bool

Method Details

DefaultHtmlClosureProvider() public method

public DefaultHtmlClosureProvider ( ) : System
return System

IsImplicitlyClosed() public method

Determines if given element can be implicitly closed like <li> or <td> in HTML"
public IsImplicitlyClosed ( ITextProvider text, ITextRange name, string &containerElementNames ) : bool
text ITextProvider Text provider
name ITextRange Element name
containerElementNames string
return bool

IsSelfClosing() public method

Determines if given element is self-closing (i.e. does not allow content)
public IsSelfClosing ( ITextProvider text, ITextRange nameRange ) : bool
text ITextProvider Text provider
nameRange ITextRange Element name
return bool