<?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>16435</bug_id>
          
          <creation_ts>2012-03-19 15:37:35 +0000</creation_ts>
          <short_desc>&apos;this&apos; value in MutationObserver callback should be MutationObserver object by default</short_desc>
          <delta_ts>2012-03-19 16:00:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Olli Pettay">bugs</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65742</commentid>
    <comment_count>0</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2012-03-19 15:37:35 +0000</bug_when>
    <thetext>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&apos;m not quite sure what DOM4 says about this case, it is pretty vague atm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65743</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-03-19 15:54:54 +0000</bug_when>
    <thetext>We no longer have the handleMutations thing. Do we still need the second parameter?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65744</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-03-19 15:55:14 +0000</bug_when>
    <thetext>Oops, sorry about that. I did define the callback this value already: https://bitbucket.org/ms2ger/dom-core/changeset/865576f86f20</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65745</commentid>
    <comment_count>3</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2012-03-19 15:57:20 +0000</bug_when>
    <thetext>The 2nd parameter is useful for the fn.bind() case, like
event.currentTarget is useful with fn.bind()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65747</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-03-19 16:00:17 +0000</bug_when>
    <thetext>Good point. Then this is indeed fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>