Hi Tim,

Tim Baumgard wrote on Fri, Jan 10, 2020 at 08:58:31AM -0600:

> I found out that Apple requires nonstandard [1] attributes to fully
> "fix" this. I don't know if using nonstandard attributes is the right
> way to go, but Apple, Google, and DuckDuckGo are using these attributes
> on their search fields.
> 
> According to Apple's own documentation, the "autocapitalize" attribute
> really should be set to "none," but all three of the previously
> mentioned sites use the deprecated "off" value instead. I assume they
> know something I don't with regards to compatibility.

The "autocapitalize" attribute is actually a standard attribute.
The autocapitalize feature makes no sense in general, and even less
so for this form, but the standard says it is half-on by default,
so i committed autocapitalize=\"none\" to switch it off.

The "autocorrect" attribute indeed doesn't exist, and i refuse
knowingly violating the standards, unless in exceptional cases when
standards are being particularly stupid.  Not defining "autocorrect"
is certainly not a bug in the standard - quite to the contrary, web
standard are sprawling already and define lots of stuff they shouldn't.

Violating the standards in order to cater to individual vendors
also violating the standards is evil because it help vendors who
deploy vendor-lockin strategies.  Conversely, users using software
violating the standards deserve to be punished.  Maybe they might
switch to software better respecting the standards, if that exists.
Either way, that's the only way to motivate vendors to abandon
lockin strategies and implement standards instead.

Again, the committed patch shown below is installed on man.openbsd.org
such that people can test if they want.

Thanks for doing the research and providing the information,
  Ingo


Log Message:
-----------
autocapitalize=none; also from Tim Baumgard

Modified Files:
--------------
    mandoc:
        cgi.c

Revision Data
-------------
Index: cgi.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/cgi.c,v
retrieving revision 1.170
retrieving revision 1.171
diff -Lcgi.c -Lcgi.c -u -p -r1.170 -r1.171
--- cgi.c
+++ cgi.c
@@ -411,7 +411,8 @@ resp_searchform(const struct req *req, e
 {
        int              i;
 
-       printf("<form action=\"/%s\" method=\"get\" autocomplete=\"off\">\n"
+       printf("<form action=\"/%s\" method=\"get\" "
+              "autocomplete=\"off\" autocapitalize=\"none\">\n"
               "  <fieldset>\n"
               "    <legend>Manual Page Search Parameters</legend>\n",
               scriptname);

Reply via email to