W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

[Bug 12635] calling Functions corresponding to IDL operations/attributes on unexpected objects should throw

From: <bugzilla@jessica.w3.org>
Date: Mon, 09 May 2011 01:12:41 +0000
To: public-script-coord@w3.org
Message-Id: <E1QJF1d-0005Ke-Qd@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12635

Boris Zbarsky <bzbarsky@mit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bzbarsky@mit.edu

--- Comment #4 from Boris Zbarsky <bzbarsky@mit.edu> 2011-05-09 01:12:41 UTC ---
The other case where this come up is this:

  function f() {
  }
  f.prototype = document;
  var d = new f();
  d.write("What happens here?");

Some UAs throw in this situation; some actually invoke the native write
function on the document.  I would prefer throwing, as the represetative of one
of the UAs which currently does NOT throw here but would like to change that
behavior.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Monday, 9 May 2011 01:12:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC