Exemplo n.º 1
0
 private bool HandleMissingTr(Token t, TreeBuilder tb)
 {
     bool processed = tb.Process(new Token.EndTag("tr"));
     if (processed)
     {
         return tb.Process(t);
     }
     else
     {
         return false;
     }
 }
Exemplo n.º 2
0
 private bool AnythingElse(Token t, TreeBuilder tb)
 {
     tb.Process(new Token.EndTag("head"));
     return tb.Process(t);
 }
Exemplo n.º 3
0
 private bool AnythingElse(Token t, TreeBuilder tb)
 {
     bool processed = tb.Process(new Token.EndTag("colgroup"));
     if (processed)
     {
         // only ignored in frag case
         return tb.Process(t);
     }
     return true;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Update the TreeBuilder used when parsing content.
 /// </summary>
 /// <param name="treeBuilder">current TreeBuilder</param>
 /// <returns>this, for chaining</returns>
 internal Parser SetTreeBuilder(TreeBuilder treeBuilder)
 {
     this.treeBuilder = treeBuilder;
     return this;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Create a new Parser, using the specified TreeBuilder
 /// </summary>
 /// <param name="treeBuilder">TreeBuilder to use to parse input into Documents.</param>
 internal Parser(TreeBuilder treeBuilder)
 {
     // by default, error tracking is disabled.
     this.treeBuilder = treeBuilder;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Update the TreeBuilder used when parsing content.
 /// </summary>
 /// <param name="treeBuilder">current TreeBuilder</param>
 /// <returns>this, for chaining</returns>
 internal Parser SetTreeBuilder(TreeBuilder treeBuilder)
 {
     this.treeBuilder = treeBuilder;
     return(this);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Create a new Parser, using the specified TreeBuilder
 /// </summary>
 /// <param name="treeBuilder">TreeBuilder to use to parse input into Documents.</param>
 internal Parser(TreeBuilder treeBuilder)
 {
     // by default, error tracking is disabled.
     this.treeBuilder = treeBuilder;
 }