From 2568d499c74ba9bba7ed379f8fa8717b62bdadf9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 29 May 2018 20:32:45 +0000 Subject: Remove redundant value= attributes from option elements, and use type=search rather than type=text for the input element because it tends to better support autocompletion. Both suggested by John Gardner . --- cgi.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'cgi.c') diff --git a/cgi.c b/cgi.c index ddbc52bb..8098352d 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.157 2018/05/18 14:23:00 schwarze Exp $ */ +/* $Id: cgi.c,v 1.158 2018/05/29 20:32:45 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze @@ -400,7 +400,7 @@ resp_searchform(const struct req *req, enum focus focus) /* Write query input box. */ - printf(" q.query != NULL) html_print(req->q.query); printf( "\" size=\"40\""); @@ -436,7 +436,7 @@ resp_searchform(const struct req *req, enum focus focus) printf(" selected=\"selected\""); puts(">All Architectures"); for (i = 0; i < arch_MAX; i++) { - printf("