private bool ParseEndBracket() { stateAction = ParseToken; // TODO : ??????? var result = false; var c = content[index]; if (c == '/') { if (content[index + 1] == '>') { result = FireToken(TokenType.CloseTag, lastTag.Name); index++; } else { // Force to close current tag GoToChar('>'); } } else { var tagType = lastTag.GetTag(); if (tagType == HtmlTag.Script) { stateAction = ParseScript; } else if (tagType == HtmlTag.Style) { stateAction = ParseStyle; } } index++; return(result); }
private bool FireOpenTag(QualifiedName name) { var result = FireToken(TokenType.OpenTag, name); var tokenType = currentToken.GetTag(); lastTag = currentToken; return(result); //if (tokenType == HtmlTag.Script) //isStyle = (tokenType == HtmlTag.Style); }