I'm creating this issue in scenery-phet, but it's relevant to all places where accessibleName should be used.
I asked about the different between innerContent and accessibleName. @jessegreenberg replied in Slack#DM:
In ParallelDOM.ts, we have a "lower level" and "higher level" API. The lower level is where we started, it lets you customize the markup in the PDOM quite a bit. The higher level is more simple, and lets you set things like the accessible name and help text without needing to understand the markup as much.
There is current inconsistency in which API is used. Some common-code components are setting innerContent instead of accessibleName. And this has been causing confusion while trying to implement accessible names in MOTHA https://github.com/phetsims/models-of-the-hydrogen-atom/issues/67. @jessegreenberg and I think that we should be using accessibleName (the higher-level API) whenever possible, which means changing innerContent to accessibleName.
Related to https://github.com/phetsims/models-of-the-hydrogen-atom/issues/67 ...
I'm creating this issue in scenery-phet, but it's relevant to all places where accessibleName should be used.
I asked about the different between
innerContent
andaccessibleName
. @jessegreenberg replied in Slack#DM:There is current inconsistency in which API is used. Some common-code components are setting
innerContent
instead ofaccessibleName
. And this has been causing confusion while trying to implement accessible names in MOTHA https://github.com/phetsims/models-of-the-hydrogen-atom/issues/67. @jessegreenberg and I think that we should be usingaccessibleName
(the higher-level API) whenever possible, which means changinginnerContent
toaccessibleName
.An incomplete list of examples: