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); }
public void SetUp() { _document = new Document(); _style = (HtmlStyleElement)_document.CreateElement("style"); }