summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/WebIDL/valid/idl/inherits-getter.widl
blob: 558e8116494b2b3b5cf0ab5bc4f3c9f384aa906b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
interface Animal {

  // A simple attribute that can be set to any string value.
  readonly attribute DOMString name;
};

interface Person : Animal {

  // An attribute whose value cannot be assigned to.
  readonly attribute unsigned short age;

  // An attribute that can raise an exception if it is set to an invalid value.
  // Its getter behavior is inherited from Animal, and need not be specified
  // the description of Person.
  inherit attribute DOMString name;
};