-
-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathXMLDOMImplementation.coffee
More file actions
48 lines (38 loc) · 1.72 KB
/
XMLDOMImplementation.coffee
File metadata and controls
48 lines (38 loc) · 1.72 KB
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
# Implements the DOMImplementation interface
module.exports = class XMLDOMImplementation
# Tests if the DOM implementation implements a specific feature.
#
# `feature` package name of the feature to test. In Level 1, the
# legal values are "HTML" and "XML" (case-insensitive).
# `version` version number of the package name to test.
# In Level 1, this is the string "1.0". If the version is
# not specified, supporting any version of the feature will
# cause the method to return true.
hasFeature: (feature, version) ->
return true
# Creates a new document type declaration.
#
# `qualifiedName` qualified name of the document type to be created
# `publicId` public identifier of the external subset
# `systemId` system identifier of the external subset
createDocumentType: (qualifiedName, publicId, systemId) ->
throw new Error "This DOM method is not implemented."
# Creates a new document.
#
# `namespaceURI` namespace URI of the document element to create
# `qualifiedName` the qualified name of the document to be created
# `doctype` the type of document to be created or null
createDocument: (namespaceURI, qualifiedName, doctype) ->
throw new Error "This DOM method is not implemented."
# Creates a new HTML document.
#
# `title` document title
createHTMLDocument: (title) ->
throw new Error "This DOM method is not implemented."
# Returns a specialized object which implements the specialized APIs
# of the specified feature and version.
#
# `feature` name of the feature requested.
# `version` version number of the feature to test
getFeature: (feature, version) ->
throw new Error "This DOM method is not implemented."