Backed out changeset 14c76164f4c2 - patch for bug 524346 caused test fails

This commit is contained in:
Igor Bukanov
2009-10-27 19:21:47 +03:00
parent 90328eab55
commit 0d26f9ebc9
13 changed files with 137 additions and 120 deletions

View File

@@ -5578,7 +5578,7 @@ xml_childIndex(JSContext *cx, uintN argc, jsval *vp)
NON_LIST_XML_METHOD_PROLOG;
parent = xml->parent;
if (!parent || xml->xml_class == JSXML_CLASS_ATTRIBUTE) {
*vp = cx->runtime->NaNValue;
*vp = DOUBLE_TO_JSVAL(cx->runtime->jsNaN);
return JS_TRUE;
}
for (i = 0, n = JSXML_LENGTH(parent); i < n; i++) {