E-mail List Archives
Re: <input type="submit"> vs <button> element
From: Pierre Hachey
Date: Dec 12, 2016 4:05PM
- Next message: Birkir R. Gunnarsson: "Re: vs
- Previous message: Pierre Hachey: "Re: vs
- Next message in Thread: Birkir R. Gunnarsson: "Re: vs
- Previous message in Thread: Pierre Hachey: "Re: vs
- View all messages in this Thread
But really a submit button should be: input type =submit
Sent from my Samsung device
-------- Original message --------
From: Pierre Hachey < <EMAIL REMOVED> >
Date: 2016-12-12 6:03 PM (GMT-05:00)
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] vselement
It would actually be Aria-label="submit"
:)
Sent from my Samsung device
-------- Original message --------
From: "Moore,Michael (Accessibility) (HHSC)" < <EMAIL REMOVED> >
Date: 2016-12-12 5:59 PM (GMT-05:00)
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] vselement
Why would you need <button aria-role="button"> the native semantics of <button> do not need to be overridden. Now if you had this <span role="button">Submit</span> then you would need the aria-role. You would also not be allowing the native semantics of button to work for you and would not be following best practices.
The checker is possibly complaining because you are using <button> instead of <submit> but the native handling of the <submit> element by the browser may not be what is desired in this case, which is why your developers may have used the more generic <button> element.
Mike Moore
Accessibility Coordinator
Texas Health and Human Services Commission
Civil Rights Office
(512) 438-3431 (Office)
- Next message: Birkir R. Gunnarsson: "Re: vs
- Previous message: Pierre Hachey: "Re: vs
- Next message in Thread: Birkir R. Gunnarsson: "Re: vs
- Previous message in Thread: Pierre Hachey: "Re: vs
- View all messages in this Thread