[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-2d-dev
Subject: Re: RFR: 8273986: JEditorPane HTML Demo - Accessibility issues [v2]
From: Abhishek Kumar <abhiscxk () openjdk ! org>
Date: 2023-02-28 7:30:04
Message-ID: 7O-jTN0mbKniXVuuK5vlBuTyWeoa_OuxmneDofegHoo=.20ae09c3-b21f-44ae-950b-6fa32df6cabf () github ! com
[Download RAW message or body]
On Mon, 27 Feb 2023 20:57:35 GMT, Sergey Bylokhov <serb@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic