[Checkins] SVN: zope.testrecorder/trunk/html/recorder.js don't die
when a label doesn't have a "for" attribute
Benji York
benji at zope.com
Wed Jun 7 10:30:15 EDT 2006
Log message for revision 68511:
don't die when a label doesn't have a "for" attribute
Changed:
U zope.testrecorder/trunk/html/recorder.js
-=-
Modified: zope.testrecorder/trunk/html/recorder.js
===================================================================
--- zope.testrecorder/trunk/html/recorder.js 2006-06-06 16:42:45 UTC (rev 68510)
+++ zope.testrecorder/trunk/html/recorder.js 2006-06-07 14:30:13 UTC (rev 68511)
@@ -355,7 +355,8 @@
TestRecorder.ElementInfo.prototype.findReferencingLabel = function(element) {
var labels = top.frames[1].document.getElementsByTagName('label')
for (var i = 0; i < labels.length; i++) {
- if (labels[i].attributes['for'].value == element.id)
+ if (labels[i].attributes['for'] &&
+ labels[i].attributes['for'].value == element.id)
return labels[i]
}
}
More information about the Checkins
mailing list