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.
Attachments
For Gerrit Dashboard: QTBUG-15125 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
631014,3 | QDom: Fix setAttributeNode() to properly replace existing attributes | dev | qt/qtbase | Status: MERGED | +2 | 0 |
632482,2 | QDom: Fix setAttributeNode() to properly replace existing attributes | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
632621,2 | QDom: Fix setAttributeNode() to properly replace existing attributes | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
632757,2 | QDom: Fix setAttributeNode() to properly replace existing attributes | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |