Пример #1
0
        /// <summary>
        /// This is a javascript application.
        /// </summary>
        /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param>
        public Application(IApp page)
        {

            var s = new IHTMLStyle
            {
                // http://www.w3schools.com/tags/att_style_scoped.asp
                // http://caniuse.com/style-scoped
                scoped = true

            }.AttachTo(page.Content);

            s.setAttribute("scoped", "scoped");


            s.StyleSheet[IHTMLElement.HTMLElementEnum.span].style.color = "red";
            // does not work yet?
        }