Skip to content

NVDA does not announce contents of div with role="alert" containing a list #14990

@grabowsd

Description

@grabowsd

Steps to reproduce:

https://jsfiddle.net/gdaria/9kcy7fo3/15/

This is similar issue to #8557
When a list <ul> and heading <h4> are wrapped in a div with role=alert the list and the heading will not be read by NVDA.

  <div id="errorList" class="hidden" role="alert">
    <h4>
      Error List
    </h4>
    <ul>
      <li>Error 1</li>
      <li>Error 2</li>
      <li>Error 3</li>
    </ul>
  </div>

When a list is removed from the div the heading will be announced or when role=alert is added to <ul> the list will be announced.

    <ul id="errorList" class="hidden" role="alert">
      <li>Error 1</li>
      <li>Error 2</li>
      <li>Error 3</li>
    </ul>

Actual behavior:

When button is clicked NVDA only says "Alert" and it doesn't read a heading or a list.

Expected behavior:

When button is clicked NVDA should announce full alert message (heading + list)

NVDA logs, crash dumps and other attachments:

System configuration

NVDA installed/portable/running from source:

NVDA version:

NVDA Version 2023..1.0.27913

Windows version:

Windows 10 Enterprise Version 10.0.19045 Build 19045

Name and version of other software in use when reproducing the issue:

Microsoft Edge: Version 113.0.1774.57 (Official build) (64-bit)
Chrome Version 114.0.5735.110 (Official Build) (64-bit)

Firefox 113.0.2 (64-bit)

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

Have you tried any other versions of NVDA? If so, please report their behaviors.

If NVDA add-ons are disabled, is your problem still occurring?

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/chromeapp/firefoxp3https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#prioritytriagedHas been triaged, issue is waiting for implementation.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions