Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
4.7.0, 6.6.2
-
OS: Windows 7 Pro x64
Destination : Desktop
-
3
-
8c9913458 (dev), 3bce1f594 (6.9), c7ec709a2 (6.8), c554dc953 (tqtc/lts-6.5)
-
Foundation PM Prioritized
Description
Manual says
"QDomAttr QDomElement::setAttributeNode ( const QDomAttr & newAttr )
Adds the attribute newAttr to this element.
If the element has another attribute that has the same name as newAttr, this function replaces that attribute and returns it; otherwise the function returns a null attribute.",
but it seems it adds newAttr regardless of earlier presence of an attribute with the same name - after using it referenced QDomElement has two attributes with the same name and different values.