dom-accessibility-api icon indicating copy to clipboard operation
dom-accessibility-api copied to clipboard

Expose consultedNodes

Open calebeby opened this issue 4 years ago • 1 comments

Hi, is there a way to use the values of consultedNodes when calling computeAccessibleName or computeAccessibleDescription? Maybe we could add 2nd copies of those methods with different names that return an object { name/description: '...', consultedNodes: ... } to avoid breaking changes?

calebeby avatar Sep 02 '21 17:09 calebeby

Thanks for the feedback.

I think this makes sense so that you can work around the current limitation for title attributes. We currently would consider the title for both name and description. With the new implementation we could initialize the consulted nodes for computeAccessibleDescription with the consulted nodes from computeAccessibleName.

Maybe we could add 2nd copies of those methods with different names that return an object { name/description: '...', consultedNodes: ... } to avoid breaking changes?

I'd rather make a breaking change than having to maintain two versions.

eps1lon avatar Sep 03 '21 09:09 eps1lon