[Bug 12845] Disallow shadowing attributes


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

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


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