C# Class Microsoft.Html.Core.Parser.Tokens.StringClosure

Helps to find out where quoted attribute value should be closed when dealing with partially typed constructs like <a b=" <b or <a b="c="d" >
Mostra file Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
StringClosure ( HtmlCharStream cs ) : System.Collections.Generic

Private Methods

Method Description
AddPendingContentToken ( List tokens, int stringStart, int currentTokenStart ) : void
CountRemainingQuotesOnLine ( int tagEnd, char quote ) : int
GetStringClosureLocation ( int tagEnd ) : int

Check string for suspicious content (if it contains markup, equal signs etc) that may tell if string is really an attribute that is missing its closing quote.

TokenizeStringContent ( char quote, int tagEnd ) : List

Simple string content tokenizer that helps determine where quoted attribute value must be closed.

VerifyTokenList ( List tokens ) : void

Method Details

StringClosure() public method

public StringClosure ( HtmlCharStream cs ) : System.Collections.Generic
cs Microsoft.Html.Core.Parser.Utility.HtmlCharStream
return System.Collections.Generic