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.

Tim

[1]
https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html



Index: cgi.c
===================================================================
RCS file: /cvs/src/usr.bin/mandoc/cgi.c,v
retrieving revision 1.108
diff -u -p -r1.108 cgi.c
--- cgi.c    10 Jan 2020 12:53:50 -0000    1.108
+++ cgi.c    10 Jan 2020 14:36:50 -0000
@@ -407,7 +407,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=\"off\" autocorrect=\"off\">\n"
            "  <fieldset>\n"
            "    <legend>Manual Page Search Parameters</legend>\n",
            scriptname);

Reply via email to