protected HtmlWrappingTokenizer(HtmlTokenizer tokenizer)
 {
     if (tokenizer == null) {
         throw new ArgumentNullException("tokenizer");
     }
     _tokenizer = tokenizer;
 }
Beispiel #2
0
        private void Init(HtmlTokenizer tokenizer)
        {
            _lineInfo = tokenizer as IXmlLineInfo;
            tokenizer.ParseError += new EventHandler<ParseErrorEventArgs>(tokenizer_ParseError);
            _tokenizer = new Tokenizer(tokenizer);

            if (FragmentCase) {
                _openElements.AddFirst(Token.CreateStartTag("html"));
                ResetInsertionMode();
            }
        }
Beispiel #3
0
 public Tokenizer(HtmlTokenizer tokenizer, ListView output)
     : base(tokenizer)
 {
     _output = output;
 }
Beispiel #4
0
 public HtmlReader(HtmlTokenizer tokenizer)
 {
     if (tokenizer == null) {
         throw new ArgumentNullException("tokenizer");
     }
     Init(tokenizer);
 }
 public Tokenizer(HtmlTokenizer tokenizer)
     : base(tokenizer)
 {
 }