question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"aria-labelledby" references are referring to IDs that do not exist

See original GitHub issue

We are using webchat-es5.js for our Virtual assistant and our customer evaluating for 508 compliance. The following WAI-ARIA ‘aria-labelledby’ attribute has a reference to an ID that does not exist (broken reference) on the Bot response:

•webchat__stacked-layout__id–fxqmh •webchat__stacked-layout__id–ok1u7

The references generated for user entered text has valid references. Issue is only on the bot generated responses. As per the ARIA guideline, the referenced id must present. Need assistance on this to be 508 compliant.

Screenshots

In User Text, (This is fine) image In Bot response, the reference is missing. image

Version

webchat es5 version 4.11.0 https://cdn.botframework.com/botframework-webchat/4.11.0/webchat-es5.js Integrating the CDN version js directly on the page using script tag (No Iframe). Desktop Chrome Browser.

<meta name="botframework-directlinespeech:version" content="4.11.0">
<meta name="botframework-webchat:bundle:variant" content="full-es5">
<meta name="botframework-webchat:bundle:version" content="4.11.0">
<meta name="botframework-webchat:core:version" content="4.11.0">
<meta name="botframework-webchat:ui:version" content="4.11.0">

Describe the bug

We are using webchat-es5.js for our Virtual assistant and our customer evaluating for 508 compliance. The WAI-ARIA ‘aria-labelledby’ attribute has a reference to an ID that does not exist (broken reference) on the Bot response. In user input text, the reference is proper. To be compliant, the bot response broken reference should be resolved.

Steps to reproduce

  1. Deploy Web App Bot with adaptive cards.
  2. Open the web app bot on browser.
  3. Interact with the bot till the adaptive card response arrives.
  4. Search for “aria-labelledby” to get the reference value "Eg. webchat__stacked-layout__id–xv8x4 ".
  5. Search for the reference “webchat__stacked-layout__id–fxqmh”. A div should be present with id=“webchat__stacked-layout__id–fxqmh”.

Expected behavior

For every “aria-labelledby” reference, A div should be present with id=“webchat__stacked-layout__id–fxqmh”.

[Bug]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
compulimcommented, Feb 2, 2021

We have a fix in PR review now. It is expected to ship around February 15.

0reactions
venkatx5commented, Feb 7, 2021

We have a fix in PR review now. It is expected to ship around February 15.

That’s wonderful. Thanks a lot for the Swift action. Hope it’ll be webchat version 12.0?

Yes, 4.12 is slated for March 8th release.

May I know what’s available on February 15?

Read more comments on GitHub >

github_iconTop Results From Across the Web

2. Aria-labelledby has incorrect (ID) reference
Description: The WAI-ARIA 'aria-labelledby' attribute has a reference to an ID that does not exist or an ID that is not unique.
Read more >
aria-labelledby references id that isn't present in DOM (yet)
This property accepts an id list (space delimited) that will contain, naturally, the id of the label element that is 'for' the form...
Read more >
Using aria-labelledby to provide a name for user interface ...
aria-labelledby can reference more than one text element; label can only reference one. aria-labelledby can be used for a variety of elements while...
Read more >
aria-labelledby - Accessibility - MDN Web Docs
The aria-labelledby property enables authors to reference other elements on the page to define an accessible name. This is useful when using ...
Read more >
Broken ARIA Reference - Equalize Digital
If an aria-labeledby or aria-describedby attribute is present and not empty, Accessibility Checker will scan the post or page to attempt to find...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found