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

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