<?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>14428</bug_id>
          
          <creation_ts>2011-10-11 11:57:35 +0000</creation_ts>
          <short_desc>Investigate if onfoo properties should be handled in a special way in interface.prototype</short_desc>
          <delta_ts>2011-12-20 06:49:03 +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>WebIDL</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="Cameron McCormack">cam</assigned_to>
          <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>jrossi</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>public-script-coord</cc>
    
    <cc>travil</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>58045</commentid>
    <comment_count>0</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2011-10-11 11:57:35 +0000</bug_when>
    <thetext>In bugs https://bugzilla.mozilla.org/show_bug.cgi?id=691059 and
https://bugzilla.mozilla.org/show_bug.cgi?id=684671
we had to change prototype handling so that
Document.prototype.onreadystatechange and
HTMLElement.prototype.onmouseenter/leave don&apos;t throw when setting.

Hopefully those are just special cases which we can remove at some point.
But if we&apos;re not lucky, we may need to special case all the onfoo properties.

IE9 seems to behave like Gecko used to, which is why
https://bugzilla.mozilla.org/show_bug.cgi?id=691059 happens also in IE9 when
the test page is forced to load in IE9 mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58063</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-10-11 16:46:02 +0000</bug_when>
    <thetext>Note that Gecko&apos;s behavior here has nothing to do with the prototype.  We simply treat a set as a no-op and return null on get if the |this| of the getter/setter is not an instance of the right interface.  That includes invoking the getter or setter on the prototype, but also on any other random object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58064</commentid>
    <comment_count>2</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2011-10-11 16:49:35 +0000</bug_when>
    <thetext>True. The bugs just happened to be about setting
interface.prototype.onfoo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58105</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-10-12 03:08:33 +0000</bug_when>
    <thetext>Do we need to introduce a [DoNothingIfBadThisValue] extended attribute?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59846</commentid>
    <comment_count>4</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2011-11-10 20:26:41 +0000</bug_when>
    <thetext>I&apos;d really prefer to avoid another hack if possible. Sites that are updating do get the latest versions of Prototype (which has this problem and has long since been fixed). We could cater to sites using older libraries that do bad things, or we can let these sites naturally evolve as more browsers implement the spec. 

store.sony.ca is specifically sending IE the meta tag telling it to use it&apos;s old compatibility binding for the DOM (IE8 mode):
&lt;meta http-equiv=&quot;x-ua-compatible&quot; content=&quot;IE=8&quot; /&gt;

This lets them update on their timetable. I plan to contact them as well to request that they update to newer versions of prototype.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61476</commentid>
    <comment_count>5</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-12-13 01:27:29 +0000</bug_when>
    <thetext>Sorry, forgot to mention that I added [LenientThis] a month or so back:

  https://www.w3.org/Bugs/Public/show_bug.cgi?id=14037#c46

and Ian added it to the onreadystatechange attribute.  This seemed the best way forward given that the broken library being used, Sarissa, is apparently unmaintained.

Olli, since you originally filed this bug, could you please indicate for the Disposition of Comments document whether this resolution was satisfactory.  Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61671</commentid>
    <comment_count>6</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-12-16 16:29:28 +0000</bug_when>
    <thetext>We need that also on at least mouseenter/mouseleave (Gecko did that on elements, documents, windows, but it may only be needed on elements).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61804</commentid>
    <comment_count>7</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-12-20 06:49:03 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; We need that also on at least mouseenter/mouseleave (Gecko did that on
&gt; elements, documents, windows, but it may only be needed on elements).

I don&apos;t know that there&apos;s any spec that defines onmouseenter and onmouseleave attributes at the moment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>