[kupu-checkins] r33873 - kupu/trunk/kupu/common
duncan at codespeak.net
duncan at codespeak.net
Mon Oct 30 11:45:31 CET 2006
Author: duncan
Date: Mon Oct 30 11:45:30 2006
New Revision: 33873
Modified:
kupu/trunk/kupu/common/kupuhelpers.js
Log:
Fix for Plone ticket 5687.
Modified: kupu/trunk/kupu/common/kupuhelpers.js
==============================================================================
--- kupu/trunk/kupu/common/kupuhelpers.js (original)
+++ kupu/trunk/kupu/common/kupuhelpers.js Mon Oct 30 11:45:30 2006
@@ -257,8 +257,9 @@
};
};
var name = child.nodeName.toLowerCase();
- if (child.attributes[0] && /^_/.test(child.attributes[0].name)) {
- name += child.attributes[0].name.toLowerCase(); // Fix for Opera
+ var attr = child.attributes[0];
+ if (attr && ! /^([^_]|_moz)/.test(attr.name)) {
+ name += attr.name.toLowerCase(); // Fix for Opera
}
if (dict[name] != undefined) {
if (!dict[name].push) {
More information about the kupu-checkins
mailing list