Closed Bug 70541 Opened 24 years ago Closed 24 years ago

all attributes on content element aren't set on bound elmeent

Categories

(Core :: XBL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: hewitt, Assigned: hewitt)

Details

I just noticed that only the first attribute on the XBL <content> element is actually set on the bound element. See this patch for the simple solution: Index: mozilla/content/xbl/src/nsXBLBinding.cpp =================================================================== RCS file: /cvsroot/mozilla/content/xbl/src/nsXBLBinding.cpp,v retrieving revision 1.114 diff -u -r1.114 nsXBLBinding.cpp --- nsXBLBinding.cpp 2001/02/22 23:47:26 1.114 +++ nsXBLBinding.cpp 2001/03/01 02:11:43 @@ -718,7 +718,7 @@ nsCOMPtr<nsIAtom> 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;
r=blake
sr=hyatt
fixed
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.