Esempio n. 1
0
 /// <summary>Sets a flag if the end tag is the "TITLE" element end tag</summary>
 public override void HandleEndTag(HTML.Tag tag, int pos)
 {
     if (tag == HTML.Tag.Title)
     {
         isTitle = false;
     }
     else
     {
         if (tag == HTML.Tag.Body)
         {
             isBody = false;
         }
         else
         {
             if (tag == HTML.Tag.Script)
             {
                 isScript = false;
             }
         }
     }
 }
Esempio n. 2
0
 /// <summary>Sets a flag if the start tag is the "TITLE" element start tag.</summary>
 public override void HandleStartTag(HTML.Tag tag, IMutableAttributeSet attrSet, int pos)
 {
     if (tag == HTML.Tag.Title)
     {
         isTitle = true;
     }
     else
     {
         if (tag == HTML.Tag.Body)
         {
             isBody = true;
         }
         else
         {
             if (tag == HTML.Tag.Script)
             {
                 isScript = true;
             }
         }
     }
     isBreak = tag.BreaksFlow();
 }