This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The MediaList interface contains no TreatNullAs for any of the DOMStrings. I was wondering if that was intentional. WebKit/Blink/Gecko all treat null as empty string when setting mediaText, at least. http://dev.w3.org/csswg/cssom/#the-medialist-interface [[ interface MediaList { stringifier attribute DOMString mediaText; readonly attribute unsigned long length; getter DOMString item(unsigned long index); void appendMedium(DOMString medium); void deleteMedium(DOMString medium); }; ]]
(In reply to comment #0) > The MediaList interface contains no TreatNullAs for any of the DOMStrings. I > was wondering if that was intentional. WebKit/Blink/Gecko all treat null as > empty string when setting mediaText, at least. But undefined is stringified as "undefined" and becomes a media type.
https://dvcs.w3.org/hg/csswg/rev/0b537683d8a3