|
| 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