On Mon, 27 Feb 2023 20:57:35 GMT, Sergey Bylokhov <[email protected]> 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

Reply via email to