We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var html = @"<html><head><style> p::-webkit-scrollbar-thumb { background: #888 } </style></head><body><p>test</p></body></html>"; var parser = new HtmlParser(new HtmlParserOptions(), BrowsingContext.New(new Configuration().WithCss(new CssParserOptions { IsIncludingUnknownDeclarations = true, IsIncludingUnknownRules = true, IsToleratingInvalidSelectors = true, }))); var document = parser.ParseDocument(html); var stylesheet = document.StyleSheets.OfType<ICssStyleSheet>().First(); var rule = stylesheet.Rules.OfType<ICssStyleRule>().First(); var selectorText = rule.SelectorText; // -> null
rule.Selector is null, too.
rule.Selector
The text was updated successfully, but these errors were encountered:
Well, the Selector has to be null or something evaluating to false as this is not a known selector and therefore not "eval-able".
Selector
null
false
In any case the SelectorText should not be null. I'll have a look.
SelectorText
Sorry, something went wrong.
Fixed invalid selector handling #98
8b8482a
Part of the preview and of 0.16.3.
No branches or pull requests
rule.Selector
is null, too.The text was updated successfully, but these errors were encountered: