Initial fix for MDL-12256, "Course AJAX has very poor accessibility - ALT text" - test, imgAttributes.length NOT attributes.length.

This commit is contained in:
nfreear 2007-11-19 15:25:16 +00:00
parent 9b50bd46ad
commit 11599e476d

View File

@ -160,7 +160,7 @@ main_class.prototype.mk_button = function(tag, imgSrc, attributes, imgAttributes
}
}
if (imgAttributes != null) {
for (var c=0; c<attributes.length; c++) {
for (var c=0; c<imgAttributes.length; c++) {
image.setAttribute(imgAttributes[c][0], imgAttributes[c][1]);
}
}