You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you running the latest version of AngleSharp.Css?
Did you check the FAQs to see if that helps you?
Are you reporting to the correct repository? (there are multiple AngleSharp libraries, e.g., AngleSharp.Xml for Xml support)
Did you perform a search in the issues?
Description
AngleSharp fails to compute style for <div style=""></div> with the latest preview 1.0.0-beta.122
System.NullReferenceException: Object reference not set to an instance of an object.
at AngleSharp.Css.Dom.CssStyleDeclaration.ChangeDeclarations(IEnumerable`1 decls, Predicate`1 defaultSkip, Func`3 removeExisting)
at AngleSharp.Css.Dom.CssStyleDeclaration.SetDeclarations(IEnumerable`1 decls)
at AngleSharp.Css.StyleCollectionExtensions.ComputeCascadedStyle(IStyleCollection styles, IElement element, ICssStyleDeclaration parent)
at AngleSharp.Css.StyleCollectionExtensions.ComputeDeclarations(IStyleCollection styles, IElement element, String pseudoSelector)
at AngleSharp.Dom.WindowExtensions.GetComputedStyle(IWindow window, IElement element, String pseudo)
at Program.<Main>$(String[] args) in D:\source\ConsoleApp4\ConsoleApp4\Program.cs:line 16
at Program.<Main>(String[] args)
meziantou
changed the title
NullReferenceException when computing style for transform-origin: bottom
NullReferenceException when computing style
Feb 26, 2024
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
AngleSharp.Xml
for Xml support)Description
AngleSharp fails to compute style for
<div style=""></div>
with the latest preview1.0.0-beta.122
Steps to Reproduce
Expected Behavior
No exception
Actual Behavior
It throws a NullReferenceException
Possible Solution / Known Workarounds
No response
The text was updated successfully, but these errors were encountered: