Closed ahazelwood closed 5 years ago
What is the input?
Please provide a MWE to reproduce and fix the issue. Thanks!
It was some random web page (not sure which one) that I came across. In tracking it down, I did notice that no exceptions were being caught around the number parsing, so probably a good fix to implement. I’ll let you know if I come across it again.
From: Florian Rappl notifications@github.com Sent: Friday, May 24, 2019 1:25 PM To: AngleSharp/AngleSharp.Css AngleSharp.Css@noreply.github.com Cc: Andre' Hazelwood ahazelwood@ciradar.com; Author author@noreply.github.com Subject: Re: [AngleSharp/AngleSharp.Css] FormatException in ColorParse (#33)
What is the input?
Please provide an MWEhttps://en.wikipedia.org/wiki/Minimal_working_example. Thanks!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/AngleSharp/AngleSharp.Css/issues/33?email_source=notifications&email_token=AACS73FMRH45BDY3UWYQ2XTPXAQHFA5CNFSM4HPRKTEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGBI2Y#issuecomment-495719531, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AACS73HUBSYKM4MSY2HHJCDPXAQHFANCNFSM4HPRKTEA.
Solved in devel
.
Issue Templates
Please use one of the following templates to create your issue:
Getting the following exception information on parsing some html. No chance to recover exists because exception breaks parsing. Stack trace is:
Appears to be because of the numeric.Parse functions. At the very least the exceptions should be caught and null returned.
Thanks.