diff --git a/content/xbl/src/nsXBLBinding.cpp b/content/xbl/src/nsXBLBinding.cpp index 89255c61e7d..fc23341a7b2 100644 --- a/content/xbl/src/nsXBLBinding.cpp +++ b/content/xbl/src/nsXBLBinding.cpp @@ -718,7 +718,7 @@ nsXBLBinding::GenerateAnonymousContent() nsCOMPtr prefix; for (PRInt32 i = 0; i < length; ++i) { - content->GetAttributeNameAt(0, namespaceID, *getter_AddRefs(name), *getter_AddRefs(prefix)); + content->GetAttributeNameAt(i, namespaceID, *getter_AddRefs(name), *getter_AddRefs(prefix)); if (name.get() != kIncludesAtom) { nsAutoString value;