I have a feeling this is a configuration issue but I can't figure out what I'm missing here:
var html = @"<p style=""text-align: start;"">this is the content of the p tag</p>"; var parser = new HtmlParser(new HtmlParserOptions { IsScripting = false }, BrowsingContext.New(Configuration.Default.WithCss(new CssParserOptions()))); var dom = parser.ParseDocument(html); var style = dom.Body.FirstElementChild.GetStyle(); var decls = style.Count(); // -> 0 var css = style.ToCss(); // -> ""
This does not occur if the value of text-align
is left
for example.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4