Bug 358183: xml elements should be equal only if they have the same number of attributes. r=brendan

git-svn-id: svn://10.0.0.236/trunk@214205 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
igor.bukanov%gmail.com
2006-10-26 23:28:44 +00:00
parent 4f4d38eb2c
commit 3b0591f3dc

View File

@@ -3664,7 +3664,7 @@ retry:
n = xml->xml_attrs.length;
if (n != vxml->xml_attrs.length)
*bp = JS_FALSE;
for (i = 0; i < n; i++) {
for (i = 0; *bp && i < n; i++) {
attr = XMLARRAY_MEMBER(&xml->xml_attrs, i, JSXML);
if (!attr)
continue;
@@ -3677,8 +3677,6 @@ retry:
if (!vattr)
continue;
*bp = js_EqualStrings(attr->xml_value, vattr->xml_value);
if (!*bp)
break;
}
}
}