Пример #1
0
        public override IHtmlElement Create(HtmlAttributesCollection attributes, string html, int startContentIndex, int endContentIndex, IHtmlParserManager htmlParserManager)
        {
            HtmlStyleElement element = new HtmlStyleElement();

            element.Attributes = attributes;
            element.Text(html.SubStringToIndex(startContentIndex, endContentIndex - 1), true);
            return(element);
        }
Пример #2
0
 public void SetUp()
 {
     _document = new Document();
     _style    = (HtmlStyleElement)_document.CreateElement("style");
 }