[Bug 12845] Disallow shadowing attributes

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12845

Cameron McCormack <cam@mcc.id.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #37 from Cameron McCormack <cam@mcc.id.au> 2011-06-30 04:42:14 UTC ---
OK, I've added syntax for this:

  interface Ancestor {
    readonly attribute DOMString whatever;
  };

  interface Derived : Ancestor {
    attribute DOMString whatever inherits getter;
  };

Object.getOwnPropertyDescriptor(Derived.protoype, "whatever").get will be a
distinct object from Ancestor.prototype.whatever's, but they will have the same
behaviour.  There is no need to define Derived::whatever's get behaviour in
prose.

(I didn't use extended attributes for this since it's not really optional,
language binding specific behaviour.)

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.328;r2=1.329;f=h

-- 
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 Thursday, 30 June 2011 04:42:20 UTC