It seems newer values for list-style-type
are unsupported. Example:
var html = @"<ol style=""list-style-type: cjk-ideographic""><li>test</li></ol>"; var conf = Configuration.Default.WithCss(new CssParserOptions { IsIncludingUnknownDeclarations = true, IsIncludingUnknownRules = true, IsToleratingInvalidSelectors = true, }); var parser = new HtmlParser(new HtmlParserOptions { IsScripting = true }, BrowsingContext.New(conf)); var dom = parser.ParseDocument(html); var ol = dom.QuerySelector("ol"); var style = ol.GetStyle(); var styleCount = style.Count(); // -> 0
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