| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…minidom toxml() and toprettyxml() now work for document fragments. They write the children of the fragment, without adding a level of indentation.
Documentation build overview82 files changed · + 8 added · ± 73 modified · - 1 deleted + Added
± Modified
- Deleted |
Sorry, something went wrong.
…ment-writexml # Conflicts: # Doc/library/xml.dom.minidom.rst # Doc/whatsnew/3.16.rst # Lib/test/test_minidom.py
…' into pythongh-54092-fragment-writexml
…minidom (pythonGH-156646) toxml() and toprettyxml() now work for document fragments. They write the children of the fragment, without adding a level of indentation.
| Back | FazBrowse Home | New Git URL |
DocumentFragment was the only serializable node type without a writexml() method, so toxml() and toprettyxml() failed with AttributeError for document fragments. It was documented as implemented since GH-12677.
The fragment writes its children at the current indentation, without adding a level of indentation for itself, as it has no tag.