[Bug 24160] New: Should innerWidth/Height and company really be readonly?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24160

            Bug ID: 24160
           Summary: Should innerWidth/Height and company really be
                    readonly?
           Product: CSS
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSSOM View
          Assignee: simonp@opera.com
          Reporter: bzbarsky@mit.edu
        QA Contact: public-css-bugzilla@w3.org

Or should they have a no-op setter?  The difference is that readonly throws an
exception on set in strict mode.

This testcase:

  <script>
  "use strict";
  try {
    window.innerWidth = 0;
    alert("REACHED");
  } catch (e) { alert(e); }
  </script>

alerts "REACHED" for me in IE9, Gecko, Presto, Blink, and WebKit, so it seems a
bit worrisome to suddenly make this case throw... esp in quirks mode.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 23 December 2013 05:22:54 UTC