summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/WebIDL/valid/xml/attributes.widlprocxml
blob: 89bd8ac9b019a2e9d5a2f66b009a2c9b8a940e18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Definitions SYSTEM "widlprocxml.dtd">
<Definitions>
  <webidl>exception InvalidName {
  DOMString reason;
};

exception NoSuchPet { };

interface Person {

  attribute unsigned short age;

};</webidl>
  <Exception name="InvalidName" id="::InvalidName">
    <webidl>exception InvalidName {
  DOMString reason;
};</webidl>
    <ExceptionField name="reason" id="::InvalidName::reason">
      <webidl>  DOMString reason;</webidl>
      <Type type="DOMString"/>
    </ExceptionField>
  </Exception>
  <Exception name="NoSuchPet" id="::NoSuchPet">
    <webidl>exception NoSuchPet { };</webidl>
  </Exception>
  <Interface name="Person" id="::Person">
    <webidl>interface Person {

  attribute unsigned short age;

};</webidl>
    <Attribute name="age" id="::Person::age">
      <webidl>  attribute unsigned short age;</webidl>
      <Type type="unsigned short"/>
    </Attribute>
  </Interface>
</Definitions>