<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22308</bug_id>
          
          <creation_ts>2013-06-07 12:42:05 +0000</creation_ts>
          <short_desc>Should null and undefined stringify as &quot;null&quot; and &quot;undefined&quot; for media queries?</short_desc>
          <delta_ts>2013-08-08 13:26:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSSOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rune Lillesveen">rune</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>zcorpan</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88901</commentid>
    <comment_count>0</comment_count>
    <who name="Rune Lillesveen">rune</who>
    <bug_when>2013-06-07 12:42:05 +0000</bug_when>
    <thetext>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);
};
]]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88902</commentid>
    <comment_count>1</comment_count>
    <who name="Rune Lillesveen">rune</who>
    <bug_when>2013-06-07 12:46:35 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; The MediaList interface contains no TreatNullAs for any of the DOMStrings. I
&gt; was wondering if that was intentional. WebKit/Blink/Gecko all treat null as
&gt; empty string when setting mediaText, at least.

But undefined is stringified as &quot;undefined&quot; and becomes a media type.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88992</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-06-10 13:57:16 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/csswg/rev/0b537683d8a3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>