We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24d9755 commit 2a2f5daCopy full SHA for 2a2f5da
src/AngleSharp.Css/Dom/Internal/MediaList.cs
@@ -56,7 +56,8 @@ public String MediaText
56
public void SetMediaText(String value, Boolean throwOnError)
57
{
58
_media.Clear();
59
- var media = MediaParser.Parse(value ?? CssKeywords.All, ValidatorFactory);
+ var v = String.IsNullOrEmpty(value) ? CssKeywords.All : value;
60
+ var media = MediaParser.Parse(v, ValidatorFactory);
61
62
if (media != null)
63
0 commit comments