On Mon, 27 Feb 2023 20:57:35 GMT, Sergey Bylokhov <s...@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 Please review the latest changes. ------------- PR: https://git.openjdk.org/jdk/pull/12707