Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2b6c6ed

Browse files
committed
Merge DOMImplementation.py into interface.py
1 parent 8786cc9 commit 2b6c6ed

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

‎w3/python/core/fundamental_interface/DOMImplementation.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎w3/python/core/interface.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
from w3.python.core.type import DOMString
2+
3+
4+
class DOMImplementation:
5+
"""Interface DOMImplementation
6+
7+
The `DOMImplementation` interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.
8+
The DOM Level 1 does not specify a way of creating a document instance, and hence document creation is an operation specific to an implementation. Future Levels of the DOM specification are expected to provide methods for creating documents directly.
9+
"""
10+
11+
# TODO
12+
def has_feature(self,
13+
feature: DOMString,
14+
version: DOMString) -> bool:
15+
"""<NOT IMPLEMENTED>
16+
Test if the DOM implementation implements a specific feature.
17+
18+
Args:
19+
feature: The package name of the feature to test. In Level 1, the legal values are "HTML" and "XML" (case-insensitive).
20+
version: This is the 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.
21+
22+
Returns:
23+
`True` if the feature is implemented in the specified version, `False` otherwise.
24+
25+
This method raises no exceptions.
26+
"""
27+
raise NotImplementedError

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /