We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ad7750 commit 926083bCopy full SHA for 926083b
w3/python/core/interface.py
@@ -183,6 +183,22 @@ def _set_ownerDocument(self, owner_document: Document) -> None:
183
def _hasChildNodes(self) -> bool:
184
return self.childNodes.length > 0
185
186
+ def _check_HIERARCHY_REQUEST_ERR(self, node: Node) -> None:
187
+ # Should be checked on subclasses.
188
+ raise NotImplementedError()
189
+
190
+ def _check_WRONG_DOCUMENT_ERR(self, node: Node) -> None:
191
+ if node.ownerDocument is not self.ownerDocument:
192
+ raise DOMException(DOMException.WRONG_DOCUMENT_ERR)
193
194
+ def _check_NO_MODIFICATION_ALLOWED_ERR(self) -> None:
195
+ if self._read_only:
196
+ raise DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR)
197
198
+ def _check_NOT_FOUND_ERR(self, node: Node) -> None:
199
+ if node not in self.childNodes:
200
+ raise DOMException(DOMException.NOT_FOUND_ERR)
201
202
@property
203
def nodeName(self) -> DOMString:
204
"""The name of this node, depending on its type."""
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments