dom-accessibility-api
dom-accessibility-api copied to clipboard
Expose consultedNodes
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?
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.