Linked list of class names and styles (c) 1998-2000 (W3C) MIT, INRIA, Keio University Derived from HTML Tidy Release 4 Aug 2000
Esempio n. 1
0
        private string FindStyle(Lexer lexer, string tag, string properties)
        {
            Style style;

            for (style = lexer.Styles; style != null; style = style.Next)
            {
                if (style.Tag.Equals(tag) && style.Properties.Equals(properties))
                {
                    return style.TagClass;
                }
            }

            style = new Style(tag, GenSymClass(), properties, lexer.Styles);
            lexer.Styles = style;
            return style.TagClass;
        }
Esempio n. 2
0
 public Lexer(StreamIn input, TidyOptions options)
 {
     Input = input;
     Lines = 1;
     Columns = 1;
     State = LEX_CONTENT;
     BadAccess = 0;
     BadLayout = 0;
     BadChars = 0;
     BadForm = 0;
     Waswhite = false;
     Pushed = false;
     Insertspace = false;
     Exiled = false;
     Isvoyager = false;
     Versions = HtmlVersion.Everything;
     Doctype = HtmlVersion.Unknown;
     BadDoctype = false;
     Txtstart = 0;
     Txtend = 0;
     Token = null;
     Lexbuf = null;
     Lexlength = 0;
     Lexsize = 0;
     Inode = null;
     Insert = - 1;
     Istack = new Stack<InlineStack>();
     Istackbase = 0;
     Styles = null;
     Options = options;
     SeenBodyEndTag = 0;
     _nodeList = new List<Node>();
 }