public void ScriptContentIsCData()
        {
            const string html   = "<script>//<br></script>";
            var          tokens = new TokenParser().Parse(html);

            Assert.Equal(3, tokens.Count());
        }
        public void ScriptWithAttributes()
        {
            const string html   = "<script type=\"text/javascript\">//<br></script>";
            var          tokens = new TokenParser().Parse(html);

            Assert.Equal(5, tokens.Count());
        }
Ejemplo n.º 3
0
 public void StyleContentIsCData()
 {
     const string html = "<style>//<br></style>";
     var tokens = new TokenParser().Parse(html);
     Assert.Equal(3, tokens.Count());
 }
Ejemplo n.º 4
0
 public void ScriptWithAttributes()
 {
     const string html = "<script type=\"text/javascript\">//<br></script>";
     var tokens = new TokenParser().Parse(html);
     Assert.Equal(5, tokens.Count());
 }