aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitry Chestnykh <dchest@gmail.com>2011-04-15 10:48:45 -0700
committerRobert Griesemer <gri@golang.org>2011-04-15 10:48:45 -0700
commit84c7e83b4c5b71f7634f16c719577fa71ff6232f (patch)
tree6a619ea4ad583622b388a9fcf846d052e6f6e91b /lib
parent07dc26f88df9d14d7caa58010ab5992e00a9f3a7 (diff)
downloadgo-84c7e83b4c5b71f7634f16c719577fa71ff6232f.tar.xz
godoc: use "search" input type for search box.
Uses placeholder attribute instead of changing the value of search field on browsers that support it. On other browsers, the fake placeholder text is restored when the empty box loses focus. R=golang-dev, gri CC=golang-dev https://golang.org/cl/4441041
Diffstat (limited to 'lib')
-rw-r--r--lib/godoc/godoc.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/godoc/godoc.html b/lib/godoc/godoc.html
index f1d9c2ad9c..837f53c483 100644
--- a/lib/godoc/godoc.html
+++ b/lib/godoc/godoc.html
@@ -33,7 +33,7 @@
<a href="/pkg/">Packages</a> <span class="sep">|</span>
<a href="/cmd/">Commands</a> <span class="sep">|</span>
<a href="/doc/go_spec.html">Specification</a>
- <input id="search" type="text" name="q" value="{.section Query}{Query|html-esc}{.or}code search{.end}" class="{.section Query}{.or}inactive{.end}" />
+ <input id="search" type="search" name="q" value="{.section Query}{Query|html-esc}{.end}" class="{.section Query}{.or}inactive{.end}" placeholder="code search" results="0" />
</form>
</div>
</div>