Movatterモバイル変換


[0]ホーム

URL:


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

Commitb97d812

Browse files
committed
Address review comments
1 parent298a20f commitb97d812

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

‎Lib/xml/dom/minidom.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232

3333

3434
classNode(xml.dom.Node):
35-
"""Define properties accessible on a DOM node."""
35+
"""Base class representing a node in the DOM tree.
36+
Provides core properties and methods that all DOM nodes must implement.
37+
"""
3638
namespaceURI=None# this is non-null only for elements and attributes
3739
parentNode=None
3840
ownerDocument=None
@@ -84,11 +86,11 @@ def _get_lastChild(self):
8486
definsertBefore(self,newChild,refChild):
8587
"""Insert a new DOM Node before an existing Node.
8688
87-
https://dom.spec.whatwg.org/#dom-node-insertbefore
88-
The insertBefore(node, child) method, when invoked,
89-
must return the result of pre-inserting node into
90-
this before child.
91-
See also https://dom.spec.whatwg.org/#concept-node-pre-insert
89+
newChild
90+
The new node to insert
91+
refChild
92+
The existing node that will be the next sibling of newChild.
93+
If None, newChild is appended to the end.
9294
"""
9395
ifnewChild.nodeType==self.DOCUMENT_FRAGMENT_NODE:
9496
forcintuple(newChild.childNodes):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp