public HtmlReaderState(HtmlReader reader, HtmlParserState rawParserState, string rawValue) { Reader = reader ?? throw new ArgumentNullException(nameof(reader)); Line = reader.Line; Column = reader.Column; Offset = reader.Offset; RawValue = rawValue; RawParserState = rawParserState; QuoteChar = reader.QuoteChar; }
protected virtual void PushCurrentState(HtmlParserState fragmentType, string value) { PushState(CreateState(fragmentType, value)); }
private void PushCurrentState(HtmlParserState fragmentType, string value) { PushState(CreateState(fragmentType, value)); }
public virtual HtmlReaderState CreateState(HtmlParserState rawParserState, string rawValue) { return(new HtmlReaderState(this, rawParserState, rawValue)); }
/// <summary> /// Creates an instance of an HTML document. /// </summary> public HtmlDocument() { _documentnode = CreateNode(HtmlNodeType.Document, 0); _parserState = new HtmlParserState (); _parserState._lastquote = -1; }