W3C home > Mailing lists > Public > public-html@w3.org > September 2015

recommendation for improvement to the html5 specification

From: Wayne Campbell <asa.rand@gmail.com>
Date: Thu, 17 Sep 2015 09:55:06 -0700
Message-ID: <CAK_fd-H7Ug4jwu3WbJ+rTXwZJaXsdwgKPt0qjsTo55GF3ess5A@mail.gmail.com>
To: public-html@w3.org
Hello,

I have been thinking about this for a very long time... years in fact. I
have decided that now is the time to make this recommendation.

Element(s) to be amended: INPUT type="button", BUTTON

Behavior modification: addition of attribute to allow for constant-state
(always pushed, versus momentarily pushed)

Explanation: In the electronics world there have almost always been two
types of push buttons, momentary throw and toggle throw. Momentary throw is
the behavior mimicked by HTML buttons since their inception. However,
toggle throw (off until pushed on, on until pushed off) has never been
implemented as a part of the button syntax. In earlier versions of html,
the toggle throw could be mimicked by using javascript and images. I
believe that this method is still usable today, but I rarely see it in use
anymore. In more current times, the use of CSS and javascript together are
an alternative, but the commonly recommended way to accomplish it uses
checkboxes instead of buttons, and css to make the checkbox look like a
button. I believe that neither of these methods are preferable. There
should be an attribute (such as 'toggle', or a type="toggle" that would
cause the button to mimic a toggle throw button. There are many
circumstances where this type of behavior is more desirable than the
momentary method that exists now.

Submitted for your consideration, and hopefully, approval.

-- 
Wayne Campbell

The Structure of I-Code
http://www.cocopedia.com/wiki/index.php/The_Structure_of_I-Code

decode
http://cococoding.com/wayne/
Received on Friday, 18 September 2015 08:15:31 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:46:16 UTC