1 |
wakaba |
1.1 |
[1]
|
2 |
|
|
The [DFN@en[DOM XML Document Type Definition]] module
|
3 |
|
|
is a set of DOM interfaces, via which DOM applications
|
4 |
|
|
can access to document type definitions attached
|
5 |
|
|
to XML documents, for both reading and writing.
|
6 |
|
|
|
7 |
|
|
[2]
|
8 |
|
|
The DOM XML Document Type Definition module,
|
9 |
|
|
version 3.0, consists of three interfaces:
|
10 |
|
|
- [CODE(DOMi)@en[[[DocumentTypeDefinition]]]]
|
11 |
|
|
- [CODE(DOMi)@en[[[ElementTypeDefinition]]]]
|
12 |
|
|
- [CODE(DOMi)@en[[[AttributeDefinition]]]]
|
13 |
|
|
|
14 |
|
|
@@ In addition, it adds methods and attributes
|
15 |
|
|
to interfaces [CODE(DOMi)@en[[[Entity]]]],
|
16 |
|
|
[CODE(DOMi)@en[[[EntityReference]]]], and
|
17 |
|
|
[CODE(DOMi)@en[[[Notation]]]] and
|
18 |
|
|
modifies semantics of some methods and attributes
|
19 |
|
|
of [CODE(DOMi)@en[[[ProcessingInstruction]]]]
|
20 |
|
|
objects.
|
21 |
|
|
|
22 |
|
|
[3]
|
23 |
|
|
In a DOM implementation that supports version 3.0 of
|
24 |
|
|
the DOM XML Document Type Definition module,
|
25 |
|
|
the [CODE(DOMm)@en[[[hasFeature]]]] method
|
26 |
|
|
of a [CODE(DOMi)@en[[[DOMImplementation]]]] object
|
27 |
|
|
[['''MUST''']] return [CODE(IDL)@en[[[true]]]]
|
28 |
|
|
when parameters are set to
|
29 |
|
|
[CODE(URI)@en[[[http://suika.fam.cx/www/2006/feature/XDoctype]]]]
|
30 |
|
|
and [CODE(DOM)@en[[[3.0]]]].
|
31 |
|
|
In such an implementation, the [CODE(DOMm)@en[[[getFeature]]]]
|
32 |
|
|
method of a [CODE(DOMi)@en[[[Document]]]] object
|
33 |
|
|
[['''MUST''']] return the same object with
|
34 |
|
|
[CODE(DOMi)@en[[[DocumentXDoctype]]]] interface
|
35 |
|
|
when parameters are set to
|
36 |
|
|
[CODE(URI)@en[[[http://suika.fam.cx/www/2006/feature/XDoctype]]]]
|
37 |
|
|
and [CODE(DOM)@en[[[3.0]]]].
|
38 |
|
|
Likewise, any method that takes one or more feature
|
39 |
|
|
names with or without version number,
|
40 |
|
|
including [CODE(DOMm)@en[[[hasFeature]]]] and
|
41 |
|
|
[CODE(DOMm)@en[[[getFeature]]]], [['''MUST''']]
|
42 |
|
|
behave in a manner consistent with the abovementioned
|
43 |
|
|
cases.
|
44 |
|
|
|
45 |
|
|
|