<?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>21823</bug_id>
          
          <creation_ts>2013-04-25 00:38:30 +0000</creation_ts>
          <short_desc>Having status always return empty string is not web-compatible</short_desc>
          <delta_ts>2013-06-06 20:03:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#browser-interface-elements</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86756</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-04-25 00:38:30 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html
Multipage: http://www.whatwg.org/C#browser-interface-elements
Complete: http://www.whatwg.org/c#browser-interface-elements
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Having status always return empty string is not web-compatible

Posted from: 98.110.194.206 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:23.0) Gecko/20130419 Firefox/23.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86757</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-04-25 00:42:03 +0000</bug_when>
    <thetext>In particular it breaks any script that uses an undeclared global variable named &quot;status&quot;.  See https://bugzilla.mozilla.org/show_bug.cgi?id=862540 and the sort of developer confusion it causes at http://stackoverflow.com/questions/16138781/firefox-20-vs-google-charts-getvalue-oddness/16139309

As far as I can tell what UAs implement is that setting window.status saves the string and getting window.status returns the last value it was set to.  Testcase:

&lt;pre&gt;&lt;script&gt;
  status = { toString: function() { document.writeln(&apos;yes&apos;); return &quot;I am here&quot;; } }
  document.writeln(typeof status);
  document.writeln(status);
&lt;/script&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88843</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-06 20:01:02 +0000</bug_when>
    <thetext>So sad.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88844</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-06-06 20:03:37 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7920.
Check-in comment: window.status compat
http://html5.org/tools/web-apps-tracker?from=7919&amp;to=7920</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>