ref: f61086515ec135c11784525412fb09d02a7d0f83
parent: a213c90c1e28696dce4be33b0f6a71fda97c7eb6
author: khm <[email protected]>
date: Tue May 26 17:39:54 EDT 2020
apps/duckduckgo: fix accessibility problems reported by WAVE: https://wave.webaim.org
--- a/apps/duckduckgo/app.rc
+++ b/apps/duckduckgo/app.rc
@@ -19,9 +19,10 @@
fn duckduckgo_body {
echo '
<h1>Site search</h1>
-<h3>using DuckDuckGo</h3>
+<h2>using DuckDuckGo</h2>
<form action="/_search/" method="POST">
-<input type="text" name="q" placeholder="Search text...">
+<label for="searchtext">Site search:</label>
+<input type="text" id="searchtext" name="q" placeholder="Search text...">
<input type="submit" value="Search">
</form>'
--- a/apps/duckduckgo/footer.inc.sample
+++ b/apps/duckduckgo/footer.inc.sample
@@ -1,3 +1,3 @@
<div><a href="http://werc.cat-v.org">Powered by werc</a></div>
-<div><form action="/_search/" method="POST"><input type="text" name="q" placeholder="Site search..."><input type="submit" display="Search"></form></div>
+<div><form action="/_search/" method="POST"><label for="searchtext">Site search:</label> <input type="text" id="searchtext" name="q" placeholder="Enter search text..."><input type="submit" display="Search"></form></div>