Re: Considerations about the ARIA role textbox example in MDN
For some reason that I don't understand, the code section is not
highlighted, but I have properly followed the instructions as shown here:
Em qui, 30 de mar de 2017 às 08:29, Germano Corrêa <
> I've submitted right now. I just forgot to make a comment of why I changed
> it, but I think it wouldn't be a huge problem now.
> It's my first direct contribution to MDN, so I'm sorry for any mistakes.
> Em qui, 30 de mar de 2017 às 07:55, Germano Corrêa <
> firstname.lastname@example.org> escreveu:
> Yes, I'm saying exactly that!
> Searching more I found out a way to create an element (let's say a div)
> with text input using the role textbox. I have tested with a screen reader
> too, and without the role, Orca doesn't read it as an input element (but it
> does reads with the role)
> I can update the example in the MDN page about this role.
> I would be glad to help with the MDN Accessibility section, since I work
> with accessibility, but I don't have the time right now too. Maybe when I
> finish the current projects I'm working on I can help, but I barely know
> where to start.
> Best Regards,
> Germano Corrêa
> Em qua, 29 de mar de 2017 às 09:57, Chris Mills
> Hi Germano,
> Sorry for not getting back to you for so long!
> So, you are basically saying that using an ARIA role on an element that
> semantically has that role anyway is redundant, so for example:
> they are only to be used when the element you are using does not
> semantically match the role you intended it for, e.g.
> And you should only do this when you are unable to use the correct
> semantic element for some reason?
> That being the case, I agree with you completely, from my understanding of
> ARIA roles. I hint at this in the guide to ARIA I wrote recently:
> But maybe I should say it explicitly somewhere.
> We also need to update the main MDN Accessibility section at some point,
> but I really don’t have the time right now.
> All the best,
> Chris Mills
> Senior tech writer || Mozilla
> developer.mozilla.org || MDN
> email@example.com || @chrisdavidmills
> > On 17 Mar 2017, at 11:19, Germano Corrêa
> > Hello! I'm new here, so I'm sorry for any mistakes.
> > I was digging about WAI-ARIA roles, and I found out the MDN page about
> > using the textbox role:
> > As said in W3C's document Notes on Using ARIA in HTML (
> > https://www.w3.org/TR/aria-in-html/), I shouldn't be redundant in
> > implementing ARIA. Avoid using the role button in a button element, or
> in a
> > input element which its type is "button", for instance.
> > Considering this, it wouldn't redundant to use the textbox role in a
> > element which its type is text, or in a textarea element? Role's main
> > objective it's to provide semantic information for assistive technologies
> > when the native element can't provide de right information, or when the
> > native element can't be used (or it doesn't exist). But, as far I know,
> > native elements for text input already provide the right info, and
> > assistive technologies display them correctly. Despite the fact that
> > a input text element "from scratch" doesn't sound like a good idea, and
> > possibly this fact would make the textbox role useless, is there any
> > example for it?
> > The button role, for instance, has an exemple using a simple div element,
> > which later it would be stylized as a button and through JS it would have
> > the same behavior as a button. Developers don't often create buttons from
> > scratch, but it's a better example than using the role in button element.
> > Shouldn't it be the same with textbox role, or am I missing something
> > Thanks,
> > Germano Corrêa
> > _______________________________________________
> > dev-mdc mailing list
> > firstname.lastname@example.org
> > https://lists.mozilla.org/listinfo/dev-mdc
> > MDN contributor guide: http://bit.ly/ContributorGuide