From 21033565488f6c63b4c40962cccfdc8b6ca32b2a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 7 Jul 2018 19:09:53 +0300 Subject: Add support for package submission --- mod/page.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mod/page.cxx') diff --git a/mod/page.cxx b/mod/page.cxx index 94e4f4f..614bf79 100644 --- a/mod/page.cxx +++ b/mod/page.cxx @@ -25,6 +25,10 @@ using namespace xml; using namespace web; using namespace web::xhtml; +// Note that in HTML5 the boolean attribute absence represents false value, +// true otherwise. If it is present then the value must be empty or +// case-insensitively match the attribute's name. +// namespace brep { // CSS_LINKS @@ -90,8 +94,7 @@ namespace brep << TBODY << TR << TD(ID="search-txt") - << *INPUT(TYPE="search", NAME="q", VALUE=query_, - AUTOFOCUS="autofocus") + << *INPUT(TYPE="search", NAME="q", VALUE=query_, AUTOFOCUS="") << ~TD << TD(ID="search-btn") << *INPUT(TYPE="submit", VALUE="Search") @@ -141,7 +144,7 @@ namespace brep s << PLACEHOLDER(placeholder_); if (autofocus_) - s << AUTOFOCUS("autofocus"); + s << AUTOFOCUS(""); s << ~INPUT << ~TD -- cgit v1.1