1 Jul 2010 10:25
[otrs-cvs] Fred/var/httpd/htdocs/js FredHTMLCheck.js,1.4,1.5
CVS commits notifications of OTRS.org <cvs-log <at> otrs.org>
2010-07-01 08:25:07 GMT
2010-07-01 08:25:07 GMT
Comments:
Update of /home/cvs/Fred/var/httpd/htdocs/js
In directory lancelot:/tmp/cvs-serv2011/var/httpd/htdocs/js
Modified Files:
FredHTMLCheck.js
Log Message:
Removed rel="fred".
Improved accessibility check for labels, also recognize surrounding label elements.
Author: mg
Index: FredHTMLCheck.js
===================================================================
RCS file: /home/cvs/Fred/var/httpd/htdocs/js/FredHTMLCheck.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -2 -u -d -r1.4 -r1.5
--- FredHTMLCheck.js 20 May 2010 12:59:03 -0000 1.4
+++ FredHTMLCheck.js 1 Jul 2010 08:25:02 -0000 1.5
<at> <at> -49,11 +49,16 <at> <at>
$('input:text, input: password, input:checkbox, input:radio, select, textarea').each(function(){
var $this = $(this),
- Label = $([]);
+ $Label = $([]);
+ // first look for labels which refer to this element by id
if ($this.attr('id') && $this.attr('id').length) {
- Label = $('label[for=' + $this.attr('id') + ']');
+ $Label = $('label[for=' + $this.attr('id') + ']');
(Continue reading)
RSS Feed