WebAIM - Web Accessibility In Mind

E-mail List Archives

Java wasp can comply with WCAG 2.1?

for

From: JP Jamous
Date: Jan 12, 2019 10:08AM


I agree with Glen. As a developer, I do not foresee any relationship between JS and WCAG. As long as the JS code is creating well structured HTML and executing properly for assistive technology to recognize the client-side code changes, JS is fine to be used.

I think you might be thinking of situations where JS functions fire up but the assistive technology has no idea of that execution. Again as Glen mentioned, you use ARIA to ensure progress messages are being announced by screen readers.

Technically speaking, yes JS can be quite accessible and can create inaccessible modifications client-side if not presented properly. I think you are linking the latter to WCAG.



--------------------
JP Jamous
Senior Digital Accessibility Engineer
E-Mail Me |Join My LinkedIn Network
--------------------


-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of glen walker
Sent: Friday, January 11, 2019 1:07 PM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] Java webapp can comply with WCAG 2.1?

It's been a few years since I've written Java and JSP pages, but there are no limitations that I'm aware of. You essentially have an html page, with embedded java scriptlets. Your html can be as accessible as you want, and anything the scriptlet generates is totally up to you. You can provide ARIA properties on non-semantic elements from your Java code just as easily as you can hand-code them in html.


On Fri, Jan 11, 2019 at 1:04 AM Edelényi Zsolt < <EMAIL REMOVED> > wrote:

> Glen,
>
> Thank you for your answer. Yes, I am talking about .jsp. I was told
> that Java has limitations of HTML output, and consequently you cannot
> gerenate HTML pages which comply with WCAG.
>
> I do not know if this is true?
>
> Zsolt
>
> On 2019. 01. 09. 1:02, glen walker wrote:
> > Are you talking about a stand alone java app, or about a web app
> > whose contents are generated by java (such as a .jsp page)?
> >
> > A .jsp page can certainly be accessible. It's just generating html,
> > and
> we
> > know what accessible html should look like.
> >
> > Glen
> > > > > > archives at http://webaim.org/discussion/archives
> > > > > archives at http://webaim.org/discussion/archives
> >