mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Add missing properties to xml.dom.minidom (#6526)
This commit is contained in:
@@ -70,6 +70,10 @@ class Attr(Node):
|
||||
self, qName: str, namespaceURI: str | None = ..., localName: Any | None = ..., prefix: Any | None = ...
|
||||
) -> None: ...
|
||||
def unlink(self) -> None: ...
|
||||
@property
|
||||
def isId(self) -> bool: ...
|
||||
@property
|
||||
def schemaType(self) -> Any: ...
|
||||
|
||||
class NamedNodeMap:
|
||||
def __init__(self, attrs, attrsNS, ownerElement) -> None: ...
|
||||
@@ -96,6 +100,8 @@ class NamedNodeMap:
|
||||
def setNamedItem(self, node): ...
|
||||
def setNamedItemNS(self, node): ...
|
||||
def __delitem__(self, attname_or_tuple) -> None: ...
|
||||
@property
|
||||
def length(self) -> int: ...
|
||||
|
||||
AttributeList = NamedNodeMap
|
||||
|
||||
@@ -110,6 +116,7 @@ class Element(Node):
|
||||
schemaType: Any
|
||||
parentNode: Any
|
||||
tagName: str
|
||||
nodeName: str
|
||||
prefix: Any
|
||||
namespaceURI: str | None
|
||||
childNodes: Any
|
||||
@@ -139,6 +146,8 @@ class Element(Node):
|
||||
def setIdAttribute(self, name) -> None: ...
|
||||
def setIdAttributeNS(self, namespaceURI: str, localName) -> None: ...
|
||||
def setIdAttributeNode(self, idAttr) -> None: ...
|
||||
@property
|
||||
def attributes(self) -> NamedNodeMap: ...
|
||||
|
||||
class Childless:
|
||||
attributes: Any
|
||||
@@ -173,6 +182,8 @@ class CharacterData(Childless, Node):
|
||||
def insertData(self, offset: int, arg: str) -> None: ...
|
||||
def deleteData(self, offset: int, count: int) -> None: ...
|
||||
def replaceData(self, offset: int, count: int, arg: str) -> None: ...
|
||||
@property
|
||||
def length(self) -> int: ...
|
||||
|
||||
class Text(CharacterData):
|
||||
nodeType: Any
|
||||
@@ -182,6 +193,10 @@ class Text(CharacterData):
|
||||
def splitText(self, offset): ...
|
||||
def writexml(self, writer, indent: str = ..., addindent: str = ..., newl: str = ...) -> None: ...
|
||||
def replaceWholeText(self, content): ...
|
||||
@property
|
||||
def isWhitespaceInElementContent(self) -> bool: ...
|
||||
@property
|
||||
def wholeText(self) -> str: ...
|
||||
|
||||
class Comment(CharacterData):
|
||||
nodeType: Any
|
||||
@@ -205,15 +220,17 @@ class ReadOnlySequentialNamedNodeMap:
|
||||
def removeNamedItemNS(self, namespaceURI: str, localName) -> None: ...
|
||||
def setNamedItem(self, node) -> None: ...
|
||||
def setNamedItemNS(self, node) -> None: ...
|
||||
@property
|
||||
def length(self) -> int: ...
|
||||
|
||||
class Identified: ...
|
||||
class Identified:
|
||||
publicId: Any
|
||||
systemId: Any
|
||||
|
||||
class DocumentType(Identified, Childless, Node):
|
||||
nodeType: Any
|
||||
nodeValue: Any
|
||||
name: Any
|
||||
publicId: Any
|
||||
systemId: Any
|
||||
internalSubset: Any
|
||||
entities: Any
|
||||
notations: Any
|
||||
|
||||
Reference in New Issue
Block a user