<?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>13997</bug_id>
          
          <creation_ts>2011-09-01 15:24:50 +0000</creation_ts>
          <short_desc>Require that attributes are exposed on the interface prototype object</short_desc>
          <delta_ts>2011-09-02 06:25:31 +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>All</op_sys>
          <bug_status>CLOSED</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="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56189</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-09-01 15:24:50 +0000</bug_when>
    <thetext>http://dev.w3.org/2006/webapi/WebIDL/#es-attributes says

[[
For each attribute defined on the interface, there MUST exist a corresponding property. If the attribute was declared with the [Unforgeable] extended attribute, then the property exists on every object that implements the interface. Otherwise, it exists on the interface’s interface prototype object or on every object that implements the interface.
]]

Why does it say &quot;or on every object that implements the interface&quot;? That leaves a choice for the implementor and leads to interop problems and harder object detection for authors. It would be better if it required the attributes to be exposed on the interface prototype object.

See http://www.w3.org/Bugs/Public/show_bug.cgi?id=13984 for a case where this causes problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56206</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2011-09-02 04:36:47 +0000</bug_when>
    <thetext>Sorry, (as I mentioned in a private mail to you before I saw this bug) this is just a mis-edit in response to Geoffrey&apos;s comment about that paragraph of text.  This is fixed now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56207</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-09-02 06:25:31 +0000</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>