RFR: 8273986: JEditorPane HTML Demo - Accessibility issues [v2]
Abhishek Kumar
abhiscxk at openjdk.org
Tue Feb 28 06:47:02 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.
In that case I think the `rootElementInfo` needs to update for `rootHTMLAccessibleContext` everytime whenever doc change happened.
-------------
PR: https://git.openjdk.org/jdk/pull/12707
More information about the client-libs-dev
mailing list