1 diff --git a/templates/bugfield_input_text.tpl b/templates/bugfield_input_text.tpl
2 index b321b1e..576fc8f 100644
3 --- a/templates/bugfield_input_text.tpl
4 +++ b/templates/bugfield_input_text.tpl
6 <!-- custom field$field[fieldid] -->
8 <legend>$field[name] $help[field$field[fieldid]]</legend>
9 - <div class="field"><input name="custom$field[fieldid]" type="text" value="$value" size="35"<if condition="$field['maxlength']">maxlength="$field[maxlength]</if> /></div>
10 + <div class="field"><input name="custom$field[fieldid]" type="text" value="$value" size="35"<if condition="$field['maxlength']"> maxlength="$field[maxlength]"</if> /></div>
12 <!-- / custom field$field[fieldid] -->
13 diff --git a/templates/editattach.tpl b/templates/editattach.tpl
14 index 06b9af5..bfffd9e 100644
15 --- a/templates/editattach.tpl
16 +++ b/templates/editattach.tpl
19 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
20 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
23 - <link rel="stylesheet" href="templates/box.css" media="screen" />
24 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
25 <title>$attachment[filename] - $bug[summary]</title>
28 diff --git a/templates/editcomment.tpl b/templates/editcomment.tpl
29 index b03c443..570e8f4 100644
30 --- a/templates/editcomment.tpl
31 +++ b/templates/editcomment.tpl
34 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
35 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
38 - <link rel="stylesheet" href="templates/box.css" media="screen" />
39 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
40 <title><lang 1="$comment[commentid]">{@"Edit Comment %1$s"}</lang> - $bug[summary]</title>
43 diff --git a/templates/explain_automation.tpl b/templates/explain_automation.tpl
44 index b66c4ee..90fb868 100644
45 --- a/templates/explain_automation.tpl
46 +++ b/templates/explain_automation.tpl
49 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
50 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
53 <title>{$bugsys->options['trackertitle']} - {@"Automations"}</title>
54 diff --git a/templates/explain_product.tpl b/templates/explain_product.tpl
55 index c67aec6..cc841b4 100644
56 --- a/templates/explain_product.tpl
57 +++ b/templates/explain_product.tpl
60 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
61 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
64 <title>{$bugsys->options['trackertitle']} - {@"Products"}</title>
65 diff --git a/templates/favorites.tpl b/templates/favorites.tpl
66 index fa81285..36e9234 100644
67 --- a/templates/favorites.tpl
68 +++ b/templates/favorites.tpl
71 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
72 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
75 <title>{$bugsys->options['trackertitle']} - {@"My Favorite Bugs"}</title>
76 diff --git a/templates/headinclude.tpl b/templates/headinclude.tpl
77 index 24c16d9..339ec1a 100644
78 --- a/templates/headinclude.tpl
79 +++ b/templates/headinclude.tpl
81 <!-- CSS and JavaScript goes here -->
82 <meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
83 - <link rel="stylesheet" href="templates/global.css" media="screen" />
84 + <link rel="stylesheet" type="text/css" href="templates/global.css" media="screen" />
85 <link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="syndicate.php" />
86 <script type="text/javascript"> var lang = { "Cancel" : "{@"Cancel"}" }; </script>
87 <script src="templates/global.js" type="text/javascript"></script>
88 \ No newline at end of file
89 diff --git a/templates/help_window.tpl b/templates/help_window.tpl
90 index 24b575c..181aa55 100644
91 --- a/templates/help_window.tpl
92 +++ b/templates/help_window.tpl
95 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
96 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
99 - <link rel="stylesheet" href="templates/box.css" media="screen" />
100 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
101 <title>{@"Help"} - $topic[title]</title>
104 diff --git a/templates/history.tpl b/templates/history.tpl
105 index 13134ae..88add76 100644
106 --- a/templates/history.tpl
107 +++ b/templates/history.tpl
110 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
111 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
114 <title>{@"Bug History"} - $bug[summary]</title>
115 diff --git a/templates/login.tpl b/templates/login.tpl
116 index 58df23e..17840a2 100644
117 --- a/templates/login.tpl
118 +++ b/templates/login.tpl
121 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
122 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
125 - <link rel="stylesheet" href="templates/box.css" media="screen" />
126 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
127 <title>{$bugsys->options['trackertitle']} - {@"Login"}</title>
130 diff --git a/templates/lostpassword.tpl b/templates/lostpassword.tpl
131 index 84e5ff2..9694a9f 100644
132 --- a/templates/lostpassword.tpl
133 +++ b/templates/lostpassword.tpl
136 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
137 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
140 - <link rel="stylesheet" href="templates/box.css" media="screen" />
141 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
142 <title>{$bugsys->options['trackertitle']} - {@"Lost Password"}</title>
145 diff --git a/templates/newattach.tpl b/templates/newattach.tpl
146 index 0bbac09..99e6892 100644
147 --- a/templates/newattach.tpl
148 +++ b/templates/newattach.tpl
151 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
152 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
155 - <link rel="stylesheet" href="templates/box.css" media="screen" />
156 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
157 <title>{@"New Attachment"} - $bug[summary]</title>
160 diff --git a/templates/newreport.tpl b/templates/newreport.tpl
161 index e164226..61c8801 100644
162 --- a/templates/newreport.tpl
163 +++ b/templates/newreport.tpl
166 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
167 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
170 - <link rel="stylesheet" href="templates/report.css" media="screen" />
171 - <link rel="stylesheet" href="templates/fields.css" media="screen" />
172 + <link rel="stylesheet" type="text/css" href="templates/report.css" media="screen" />
173 + <link rel="stylesheet" type="text/css" href="templates/fields.css" media="screen" />
174 <title>{@"New Bug Report"} - {$bugsys->options['trackertitle']}</title>
177 diff --git a/templates/passwordreset.tpl b/templates/passwordreset.tpl
178 index afec961..7ce3eb2 100644
179 --- a/templates/passwordreset.tpl
180 +++ b/templates/passwordreset.tpl
183 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
184 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
187 - <link rel="stylesheet" href="templates/box.css" media="screen" />
188 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
189 <title>{$bugsys->options['trackertitle']} - {@"Reset Password"}</title>
192 diff --git a/templates/quicksearch.tpl b/templates/quicksearch.tpl
193 index 5f871d8..4c6cdd1 100644
194 --- a/templates/quicksearch.tpl
195 +++ b/templates/quicksearch.tpl
198 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
199 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
202 - <link rel="stylesheet" href="templates/box.css" media="screen" />
203 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
204 <title>{$bugsys->options['trackertitle']} - {@"Quick Search"}</title>
207 diff --git a/templates/register.tpl b/templates/register.tpl
208 index 996b7f4..5eec074 100644
209 --- a/templates/register.tpl
210 +++ b/templates/register.tpl
213 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
214 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
217 - <link rel="stylesheet" href="templates/box.css" media="screen" />
218 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
219 <title>{$bugsys->options['trackertitle']} - {@"Register"}</title>
222 diff --git a/templates/search.tpl b/templates/search.tpl
223 index 0d2631f..bbfcbc1 100644
224 --- a/templates/search.tpl
225 +++ b/templates/search.tpl
228 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
229 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
232 - <link rel="stylesheet" href="templates/report.css" media="screen" />
233 - <link rel="stylesheet" href="templates/fields.css" media="screen" />
234 + <link rel="stylesheet" type="text/css" href="templates/report.css" media="screen" />
235 + <link rel="stylesheet" type="text/css" href="templates/fields.css" media="screen" />
236 <title>{$bugsys->options['trackertitle']} - {@"Search"}</title>
239 diff --git a/templates/search_results.tpl b/templates/search_results.tpl
240 index 6105743..a7e730d 100644
241 --- a/templates/search_results.tpl
242 +++ b/templates/search_results.tpl
245 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
246 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
249 <title>{$bugsys->options['trackertitle']} - {@"Search Results"}</title>
250 diff --git a/templates/search_save.tpl b/templates/search_save.tpl
251 index e02c759..fe20921 100644
252 --- a/templates/search_save.tpl
253 +++ b/templates/search_save.tpl
256 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
257 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
260 - <link rel="stylesheet" href="templates/box.css" media="screen" />
261 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
262 <title>{$bugsys->options['trackertitle']} - {@"Save Search"}</title>
265 diff --git a/templates/search_update.tpl b/templates/search_update.tpl
266 index ec240a8..5fbcc9c 100644
267 --- a/templates/search_update.tpl
268 +++ b/templates/search_update.tpl
271 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
272 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
275 - <link rel="stylesheet" href="templates/report.css" media="screen" />
276 - <link rel="stylesheet" href="templates/fields.css" media="screen" />
277 + <link rel="stylesheet" type="text/css" href="templates/report.css" media="screen" />
278 + <link rel="stylesheet" type="text/css" href="templates/fields.css" media="screen" />
279 <title>{$bugsys->options['trackertitle']} - {@"Mass Update"}</title>
282 diff --git a/templates/showreport.tpl b/templates/showreport.tpl
283 index 812936d..a8f2540 100644
284 --- a/templates/showreport.tpl
285 +++ b/templates/showreport.tpl
288 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
289 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
292 - <link rel="stylesheet" href="templates/report.css" media="screen" />
293 - <link rel="stylesheet" href="templates/fields.css" media="screen" />
294 - <link rel="stylesheet" href="templates/box.css" media="screen" />
295 + <link rel="stylesheet" type="text/css" href="templates/report.css" media="screen" />
296 + <link rel="stylesheet" type="text/css" href="templates/fields.css" media="screen" />
297 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
298 <title><lang 1="$bug[bugid]">{@"Bug Report %1$s"}</lang> - $bug[summary_title]</title>
301 @@ -261,6 +261,8 @@ $header
310 \ No newline at end of file
311 diff --git a/templates/std_error.tpl b/templates/std_error.tpl
312 index 40cfa09..d821a31 100644
313 --- a/templates/std_error.tpl
314 +++ b/templates/std_error.tpl
317 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
318 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
321 - <link rel="stylesheet" href="templates/box.css" media="screen" />
322 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
323 <title>{$bugsys->options['trackertitle']} - {@"Error"}</title>
326 diff --git a/templates/std_message.tpl b/templates/std_message.tpl
327 index 20aef5c..1b7afaa 100644
328 --- a/templates/std_message.tpl
329 +++ b/templates/std_message.tpl
332 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
333 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
336 - <link rel="stylesheet" href="templates/box.css" media="screen" />
337 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
338 <title>{$bugsys->options['trackertitle']} - <if condition="$show['confirm']">{@"Confirm"}<else />{@"Notice"}</if></title>
341 diff --git a/templates/std_redirect.tpl b/templates/std_redirect.tpl
342 index 2e6ac39..22276f5 100644
343 --- a/templates/std_redirect.tpl
344 +++ b/templates/std_redirect.tpl
347 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
348 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
351 - <link rel="stylesheet" href="templates/box.css" media="screen" />
352 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
353 <meta http-equiv="refresh" content="2; url=$url" />
354 <title>{$bugsys->options['trackertitle']} - {@"Redirect..."}</title>
356 diff --git a/templates/trackerhome.tpl b/templates/trackerhome.tpl
357 index 2d5b961..f446a41 100644
358 --- a/templates/trackerhome.tpl
359 +++ b/templates/trackerhome.tpl
362 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
363 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
366 <title>{$bugsys->options['trackertitle']} - {@"Bug Listing"}</title>
367 diff --git a/templates/userctrl.tpl b/templates/userctrl.tpl
368 index 16a962b..8c4fc62 100644
369 --- a/templates/userctrl.tpl
370 +++ b/templates/userctrl.tpl
373 -<html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
374 +<html xmlns="http://www.w3.org/1999/xhtml" lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
377 - <link rel="stylesheet" href="templates/box.css" media="screen" />
378 - <link rel="stylesheet" href="templates/fields.css" media="screen" />
379 + <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
380 + <link rel="stylesheet" type="text/css" href="templates/fields.css" media="screen" />
381 <title>{$bugsys->options['trackertitle']} - {@"User Options"}</title>
384 @@ -76,11 +76,11 @@ $header
385 <table class="table">
386 <tr style="text-align: center">
388 - <td class="altcolor"<strong>{@"Reporter"}</strong></td>
389 + <td class="altcolor"><strong>{@"Reporter"}</strong></td>
390 <td><strong>{@"Assignee"}</strong></td>
391 - <td class="altcolor"<strong>{@"Favorite"}</strong></td>
392 + <td class="altcolor"><strong>{@"Favorite"}</strong></td>
393 <td><strong>{@"Voter"}</strong></td>
394 - <td class="altcolor"<strong>{@"Commenter"}</strong></td>
395 + <td class="altcolor"><strong>{@"Commenter"}</strong></td>
398 <tr class="altcolor textcenter">