summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/WebIDL/valid/xml/identifier-qualified-names.widlprocxml
blob: b6024e5ff689630d50a51cd1420a51bd54a2e022 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Definitions SYSTEM "widlprocxml.dtd">
<Definitions>
  <webidl>  typedef float number;

  exception FrameworkException {

    const long ERR_NOT_FOUND = 1;

    long code;
  };

  interface System {

    object createObject(DOMString _interface);

    getter DOMString (DOMString keyName);
  };

    
    interface TextField {

      attribute boolean _const;

      attribute DOMString? _value;
    };

interface Foo {
 void op(object interface);
};</webidl>
  <Typedef name="number" id="::number">
    <webidl>  typedef float number;</webidl>
    <Type type="float"/>
  </Typedef>
  <Exception name="FrameworkException" id="::FrameworkException">
    <webidl>  exception FrameworkException {

    const long ERR_NOT_FOUND = 1;

    long code;
  };</webidl>
    <Const name="ERR_NOT_FOUND" value="1" id="::FrameworkException::ERR_NOT_FOUND">
      <webidl>    const long ERR_NOT_FOUND = 1;</webidl>
      <Type type="long"/>
    </Const>
    <ExceptionField name="code" id="::FrameworkException::code">
      <webidl>    long code;</webidl>
      <Type type="long"/>
    </ExceptionField>
  </Exception>
  <Interface name="System" id="::System">
    <webidl>  interface System {

    object createObject(DOMString _interface);

    getter DOMString (DOMString keyName);
  };</webidl>
    <Operation name="createObject" id="::System::createObject">
      <webidl>    object createObject(DOMString _interface);</webidl>
      <Type type="object"/>
      <ArgumentList>
        <Argument name="_interface">
          <Type type="DOMString"/>
        </Argument>
      </ArgumentList>
    </Operation>
    <Operation getter="getter">
      <webidl>    getter DOMString (DOMString keyName);</webidl>
      <Type type="DOMString"/>
      <ArgumentList>
        <Argument name="keyName">
          <Type type="DOMString"/>
        </Argument>
      </ArgumentList>
    </Operation>
  </Interface>
  <Interface name="TextField" id="::TextField">
    <webidl>    interface TextField {

      attribute boolean _const;

      attribute DOMString? _value;
    };</webidl>
    <Attribute name="_const" id="::TextField::_const">
      <webidl>      attribute boolean _const;</webidl>
      <Type type="boolean"/>
    </Attribute>
    <Attribute name="_value" id="::TextField::_value">
      <webidl>      attribute DOMString? _value;</webidl>
      <Type type="DOMString" nullable="nullable"/>
    </Attribute>
  </Interface>
  <Interface name="Foo" id="::Foo">
    <webidl>interface Foo {
 void op(object interface);
};</webidl>
    <Operation name="op" id="::Foo::op">
      <webidl> void op(object interface);</webidl>
      <Type type="void"/>
      <ArgumentList>
        <Argument name="interface">
          <Type type="object"/>
        </Argument>
      </ArgumentList>
    </Operation>
  </Interface>
</Definitions>