RFR: 8273986: JEditorPane HTML Demo - Accessibility issues [v2]

Abhishek Kumar abhiscxk at openjdk.org
Tue Feb 28 07:30:04 UTC 2023


On Mon, 27 Feb 2023 20:57:35 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> The "AccessibleHTML" does internally register the listener on the editor to update the state/doc.
>> 
>> But the `rootHTMLAccessibleContext` is not updated/created for the new root element on doc change and when  `getAccessibleChildrenCount` is called it returns the child count 0, because the API is get called on the old object.
>
> if the "rootHTMLAccessibleContext" depends on the doc then I think it should be updated in that listener at the same moment the doc is replaced. especially taking into account that the "rootElementInfo" is updated already.

@mrserb  The `elementInfo` variable is updated for `rootHTMLAccessibleContext` while setting up the `rootElementInfo` on doc change.
 It does report the children correctly and as of now there is no need to re-create the accessibleContext everytime on doc change.

-------------

PR: https://git.openjdk.org/jdk/pull/12707



More information about the client-libs-dev mailing list