[Bug 16435] New: 'this' value in MutationObserver callback should be MutationObserver object by default

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

           Summary: 'this' value in MutationObserver callback should be
                    MutationObserver object by default
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM
        AssignedTo: annevk@opera.com
        ReportedBy: Olli.Pettay@gmail.com
         QAContact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org


This behavior was agreed long ago.
The reason to have separate parameter for MutationObserver was to
be able to access the observer in the following cases
{
  handleMutations: function(r, m) {}
}
and
(function(r, m) {}).bind(foo);

I'm not quite sure what DOM4 says about this case, it is pretty vague atm.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 19 March 2012 15:37:45 UTC