summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancisco Donalisio <francsd@linux.vnet.ibm.com>2011-03-09 00:57:19 +0100
committerTiago Mello <timello@gmail.com>2011-03-09 00:57:19 +0100
commitfd4f9fadbede46895d8c9e9853e04e02fe701662 (patch)
tree8aacd29ebfef7d1f81a0a23dd903d6149ea29944
parent6c42067c9c5ca5bb7fe6ad544101eb414e299e17 (diff)
downloadbugzilla-fd4f9fadbede46895d8c9e9853e04e02fe701662.tar.gz
bugzilla-fd4f9fadbede46895d8c9e9853e04e02fe701662.tar.xz
Bug 634310: Remove WCAG 2.0 violations from the index.cgi to make it
W3C WAI compliant. r=timello, a=LpSolit
-rw-r--r--template/en/default/account/auth/login-small.html.tmpl6
-rw-r--r--template/en/default/global/common-links.html.tmpl2
-rw-r--r--template/en/default/global/header.html.tmpl2
-rw-r--r--template/en/default/index.html.tmpl1
4 files changed, 8 insertions, 3 deletions
diff --git a/template/en/default/account/auth/login-small.html.tmpl b/template/en/default/account/auth/login-small.html.tmpl
index a7e72eaf1..39984aeaf 100644
--- a/template/en/default/account/auth/login-small.html.tmpl
+++ b/template/en/default/account/auth/login-small.html.tmpl
@@ -47,15 +47,18 @@
<input id="Bugzilla_login[% qs_suffix FILTER html %]"
class="bz_login"
name="Bugzilla_login"
+ title="Login"
onfocus="mini_login_on_focus('[% qs_suffix FILTER js %]')"
>
<input class="bz_password"
id="Bugzilla_password[% qs_suffix FILTER html %]"
name="Bugzilla_password"
type="password"
+ title="Password"
>
<input class="bz_password bz_default_hidden bz_mini_login_help" type="text"
id="Bugzilla_password_dummy[% qs_suffix %]" value="password"
+ title="Password"
onfocus="mini_login_on_focus('[% qs_suffix FILTER js %]')"
>
[% IF Param('rememberlogin') == 'defaulton' ||
@@ -112,7 +115,8 @@
onclick="return show_forgot_form('[% qs_suffix %]')">Forgot Password</a>
<form action="token.cgi" method="post" id="forgot_form[% qs_suffix %]"
class="mini_forgot bz_default_hidden">
- <label>Login: <input type="text" name="loginname" size="20"></label>
+ <label for="login[% qs_suffix FILTER html %]">Login:</label>
+ <input type="text" name="loginname" size="20" id="login[% qs_suffix FILTER html %]">
<input id="forgot_button[% qs_suffix %]" value="Reset Password"
type="submit">
<input type="hidden" name="a" value="reqpw">
diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl
index b0bb36315..769d41e7e 100644
--- a/template/en/default/global/common-links.html.tmpl
+++ b/template/en/default/global/common-links.html.tmpl
@@ -35,7 +35,7 @@
{ alert('Please enter one or more search terms first.');
return false; } return true;">
<input class="txt" type="text" id="quicksearch[% qs_suffix FILTER html %]" name="quicksearch"
- value="[% quicksearch FILTER html %]">
+ title="Quick Search" value="[% quicksearch FILTER html %]">
<input class="btn" type="submit" value="Search"
id="find[% qs_suffix FILTER html %]">
[%-# Work around FF bug: keep this on one line %]</form>
diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl
index d6a07bcd3..c7c104e29 100644
--- a/template/en/default/global/header.html.tmpl
+++ b/template/en/default/global/header.html.tmpl
@@ -91,7 +91,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
-<html>
+<html lang="en">
<head>
[% Hook.process("start") %]
<title>[% title %]</title>
diff --git a/template/en/default/index.html.tmpl b/template/en/default/index.html.tmpl
index 73f18a5fd..b1370261f 100644
--- a/template/en/default/index.html.tmpl
+++ b/template/en/default/index.html.tmpl
@@ -140,6 +140,7 @@ YAHOO.util.Event.onDOMReady(onLoadActions);
onsubmit="return checkQuicksearch(this);">
<div>
<input id="quicksearch_main" type="text" name="quicksearch"
+ title="Quick Search"
onfocus="quicksearchHelpText(this.id, 'hide');"
onblur="quicksearchHelpText(this.id, 'show');"
>