| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…embers CharacterData was not mentioned at all, although Text, Comment and CDATASection inherit from it. Also document members which are implemented, but were omitted: Node.ownerDocument, Node.isSupported(), Node.getUserData(), Node.setUserData(), Document.doctype, Document.implementation, Document.documentURI, Document.strictErrorChecking, Document.createDocumentFragment(), Document.createCDATASection(), Document.importNode(), Document.renameNode(), Element.setIdAttribute(), Element.setIdAttributeNS(), Element.setIdAttributeNode(), Attr.isId, Attr.ownerElement, Text.wholeText, Text.splitText() and Text.replaceWholeText().
Documentation build overview61 files changed · + 1 added · ± 60 modified + Added ± Modified |
Sorry, something went wrong.
…Map methods Add class directives for all documented DOM classes, so that references to them resolve. They use :no-typesetting:, because the classes are not instantiated directly and the sections already introduce them. Add a section for DocumentFragment, which was referenced, but had no section of its own, and document Document.getElementById() and the getNamedItem(), setNamedItem() and removeNamedItem() families of NamedNodeMap, which are implemented, but were omitted. Silence references to the illustrative names in the IDL mapping example and to the PYTHON_DOM environment variable.
…bers The node type constants and the exception code constants were referenced, but never documented. Document them, including ENTITY_REFERENCE_NODE, DOCUMENT_FRAGMENT_NODE and VALIDATION_ERR, which were not even mentioned, and the ValidationErr exception. Qualify references to attributes and methods with the class which defines them, so that they resolve, and refer to xml.dom.minidom for unlink(), which is not part of the DOM.
It no longer produces warnings in the Sphinx nit-picky mode.
….specified Entity and Notation were not mentioned at all, although they are implemented and DocumentType.entities and DocumentType.notations contain such nodes.
Co-authored-by: dgelessus <dgelessus@users.noreply.github.com>
…Attr CDATASection extends Text, as in the DOM Level 1 and Level 2 IDL. NodeList.item() returns None for an index out of range, it does not forbid such index. Attribute nodes are not part of the document tree.
Reported in pythongh-156388: * which node types can have children, and of which types; * the values of nodeName and nodeValue for every node type; * childNodes is a NodeList; * NodeList does not inherit from Node; * when DocumentType.publicId and systemId are None; * "minidom" is the only well-known implementation name; * which mapping methods minidom adds to a NamedNodeMap, and where they are not available.
It is a list subclass, not a replacement for NodeList, and nodes which cannot have children use a tuple subclass. Remove the note about earlier versions of Python which did not support the official API.
The table above gives the value for every node type, and none of them is None.
…nd NEWS Suggested by dgelessus in the review of pythonGH-155632, where the same wording was used.
|
I applied suggestions and addressed more points from #156388. |
Sorry, something went wrong.
… docs Each of the NodeList and NamedNodeMap interfaces has two implementations in minidom, which support additional operations. Move this and the notes about strictErrorChecking and Attr.specified out of the documentation of the generic DOM interface.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
Sorry, something went wrong.
|
GH-156632 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
|
GH-156633 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-156634 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…members (GH-155632) (GH-156633) CharacterData was not mentioned at all, although Text, Comment and CDATASection inherit from it. Document also DocumentFragment, Entity and Notation, many implemented members which were omitted, the node type constants and the exception code constants. Add class directives for all documented interfaces, so that references to them resolve, and remove xml.dom.rst from the nit-picky mode exceptions. Fix incorrect statements about nodeName, NodeList.item(), CDATASection and attribute nodes, and describe minidom specific differences in the minidom documentation. (cherry picked from commit 922c866) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…members (GH-155632) (GH-156634) CharacterData was not mentioned at all, although Text, Comment and CDATASection inherit from it. Document also DocumentFragment, Entity and Notation, many implemented members which were omitted, the node type constants and the exception code constants. Add class directives for all documented interfaces, so that references to them resolve, and remove xml.dom.rst from the nit-picky mode exceptions. Fix incorrect statements about nodeName, NodeList.item(), CDATASection and attribute nodes, and describe minidom specific differences in the minidom documentation. (cherry picked from commit 922c866) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…embers (pythonGH-155632) CharacterData was not mentioned at all, although Text, Comment and CDATASection inherit from it. Document also DocumentFragment, Entity and Notation, many implemented members which were omitted, the node type constants and the exception code constants. Add class directives for all documented interfaces, so that references to them resolve, and remove xml.dom.rst from the nit-picky mode exceptions. Fix incorrect statements about nodeName, NodeList.item(), CDATASection and attribute nodes, and describe minidom specific differences in the minidom documentation.
| Back | FazBrowse Home | New Git URL |
The CharacterData interface was not mentioned in the documentation at all, although Text, Comment and CDATASection inherit from it, so its length attribute and mutation methods were not documented.
Other implemented members which were omitted are documented too: Node.ownerDocument, Node.isSupported(), Node.getUserData(), Node.setUserData(), Document.doctype, Document.implementation, Document.documentURI, Document.strictErrorChecking, Document.createDocumentFragment(), Document.createCDATASection(), Document.importNode(), Document.renameNode(), Document.getElementById(), Element.setIdAttribute(), Element.setIdAttributeNS(), Element.setIdAttributeNode(), Attr.isId, Attr.ownerElement, Attr.specified, Text.wholeText, Text.splitText() and Text.replaceWholeText(), the getNamedItem*(), setNamedItem*() and removeNamedItem*() methods of NamedNodeMap, the DocumentFragment, Entity and Notation interfaces, the node type constants and the exception code constants.
Class directives are added for all documented interfaces, so that references to them resolve, and Doc/library/xml.dom.rst is removed from Doc/tools/.nitignore.
These points reported in gh-156388 are addressed: