summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorDiego Rojas <rojastorrado@gmail.com>2018-11-07 14:09:04 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-11-07 14:09:04 (GMT)
commit5598cc90c745dab827e55fadded42dbe85e31d33 (patch)
tree9bda930fd528affec3133a00711a069153f71fd2 /Doc
parentf19447994983902aa88362d8fffe645f1ea2f2aa (diff)
downloadcpython-5598cc90c745dab827e55fadded42dbe85e31d33.zip
cpython-5598cc90c745dab827e55fadded42dbe85e31d33.tar.gz
cpython-5598cc90c745dab827e55fadded42dbe85e31d33.tar.bz2
bpo-34160: Preserve order of attributes in minidom. (GH-10219)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/xml.dom.minidom.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst
index 40470e8..a1f334d 100644
--- a/Doc/library/xml.dom.minidom.rst
+++ b/Doc/library/xml.dom.minidom.rst
@@ -143,6 +143,9 @@ module documentation. This section lists the differences between the API and
For the :class:`Document` node, an additional keyword argument *encoding* can
be used to specify the encoding field of the XML header.
+ .. versionchanged:: 3.8
+ The :meth:`writexml` method now preserves the attribute order specified
+ by the user.
.. method:: Node.toxml(encoding=None)
@@ -156,6 +159,10 @@ module documentation. This section lists the differences between the API and
encoding. Encoding this string in an encoding other than UTF-8 is
likely incorrect, since UTF-8 is the default encoding of XML.
+ .. versionchanged:: 3.8
+ The :meth:`toxml` method now preserves the attribute order specified
+ by the user.
+
.. method:: Node.toprettyxml(indent="", newl="", encoding="")
Return a pretty-printed version of the document. *indent* specifies the
@@ -165,6 +172,10 @@ module documentation. This section lists the differences between the API and
The *encoding* argument behaves like the corresponding argument of
:meth:`toxml`.
+ .. versionchanged:: 3.8
+ The :meth:`toprettyxml` method now preserves the attribute order specified
+ by the user.
+
.. _dom-example: