aria-controls attribute removed during runtime.
Issue Summary:
The aria-controls attribute, which is set on certain elements in the HTML, is being unexpectedly removed during runtime when using the driver.js library for creating tours.
Steps to Reproduce:
- Set up a webpage with elements that have the
aria-controlsattribute defined. - Initialize a tour using the
driver.jslibrary, targeting elements witharia-controls. - Run the tour and observe that the
aria-controlsattribute is removed from the elements during runtime.
Expected Behavior:
The aria-controls attribute should remain intact on the elements even after running the tour with driver.js.
Actual Behavior:
The aria-controls attribute is removed from the elements during runtime, which can cause accessibility issues and unexpected behavior on the page.
https://github.com/kamranahmedse/driver.js/blob/9e6f1a45b3fb023886518a99cfcb3985275b9af0/src/highlight.ts#L171-L179
@Kashif-24
thanks.
i test it but it is not working. @xionnon thanks.