Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAWS does not announce the required state on textareas when the placeholder attribute is used #553

Open
dabrams888 opened this issue Jul 21, 2021 · 6 comments

Comments

@dabrams888
Copy link

dabrams888 commented Jul 21, 2021

Summary

When tabbing to a <textarea> that uses both the HTML5 required attribute and a non-empty placeholder attribute, the required state information is not announced by JAWS. This only occurs when tabbing to the form field. If navigating to the field using the arrow keys the required state information is announced as expected.
This appears to be similar to the bug reported in issue 484, but is related to the placeholder attribute rather than an actual text value in the textarea.

  1. With JAWS enabled, navigate to the codepen provided below
  2. Tab to the "Comments" textarea

Expected result

JAWS should announce the required state information for the textarea.

Actual result

JAWS does not announce the required state information.

Example

CodePen demo

Additional Information

JAWS version and build number

JAWS Version 2021.2102.34

Operating System and version

Microsoft Windows 10 Pro Version 10.0.19042 Build 19042

Browser and version:

Google Chrome Version 91.0.4472.164 (Official Build) (64-bit)

@beltonTPG
Copy link

beltonTPG commented Jul 21, 2021

I have also just found that aria-describedby content is not announced when placeholder text is present.
I have create a new issue #554

@JAWS-test
Copy link

The problem also occurs in Firefox and Edge. Is a problem of JAWS, because the information is correctly transmitted via the Accessibility API and also output by NVDA.

@JAWS-test
Copy link

JAWS-test commented Jul 22, 2021

The problem with textarea with placeholder is not limited to required, but also occurs with many other attributes, e.g.:

  • aria-required
  • aria-roledescription
  • aria-current
  • aria-invalid
  • aria-haspopup
  • aria-errormessage
  • aria-disabled
  • aria-describedby
  • aria-description

All these attributes are not output by JAWS.

Only some relevant ARIA attributes are output:

  • aria-keyshortcuts
  • aria-readonly
  • aria-label
  • aria-labelledby

@StephenBeckettTPGi
Copy link

Behaviour confirmed.

Also note: placeholder text is not read out by JAWS - JAWS says that the field "Contains text", which is not true.

@StephenBeckettTPGi
Copy link

Closing #554 as it is included here.

@Chacomo
Copy link

Chacomo commented Mar 18, 2022

We have a lot of forms which have a required textarea in our application. Currently this state is only announced by NVDA.

One additional hint:
If the textarea is set readonly, then the required information will be announced.
The label for a readonly textarea will also be shown in the braille viewer (at the moment it is only read).

Example:

<span id="test-1">Test 1</span>
<textarea tabindex="0" aria-labelledby="test-1" aria-readonly="true" aria-required="true"></textarea>
<span id="test-2">Test 2</span>
<textarea tabindex="0" aria-labelledby="test-2" aria-required="true"/></textarea>

Do you already know whether this will be fixed? We would really appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants