예제 #1
0
 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;
 }
예제 #2
0
 protected virtual void PushCurrentState(HtmlParserState fragmentType, string value)
 {
     PushState(CreateState(fragmentType, value));
 }
 private void PushCurrentState(HtmlParserState fragmentType, string value)
 {
     PushState(CreateState(fragmentType, value));
 }
예제 #4
0
 public virtual HtmlReaderState CreateState(HtmlParserState rawParserState, string rawValue)
 {
     return(new HtmlReaderState(this, rawParserState, rawValue));
 }
예제 #5
0
		/// <summary>
		/// Creates an instance of an HTML document.
		/// </summary>
		public HtmlDocument()
		{
			_documentnode = CreateNode(HtmlNodeType.Document, 0);
			_parserState = new HtmlParserState ();
			_parserState._lastquote = -1;
		}