Skip to content

Commit f4618de

Browse files
committed
Use all if null given
1 parent 48ae2f9 commit f4618de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AngleSharp.Css/Dom/Internal/MediaList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public String MediaText
5656
public void SetMediaText(String value, Boolean throwOnError)
5757
{
5858
_media.Clear();
59-
var media = MediaParser.Parse(value, ValidatorFactory);
59+
var media = MediaParser.Parse(value ?? CssKeywords.All, ValidatorFactory);
6060

6161
if (media != null)
6262
{

0 commit comments

Comments
 (0)