We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e82d24c + 1b109cf commit fbca680Copy full SHA for fbca680
1 file changed
source/globalCommands.py
@@ -3670,6 +3670,16 @@ def script_reportLinkDestination(
3670
ti.expand(textInfos.UNIT_CHARACTER)
3671
obj: NVDAObject = ti.NVDAObjectAtStart
3672
presses = scriptHandler.getLastScriptRepeatCount()
3673
+ if (
3674
+ obj.role == controlTypes.role.Role.GRAPHIC
3675
+ and (
3676
+ obj.parent
3677
+ and obj.parent.role == controlTypes.role.Role.LINK
3678
+ )
3679
+ ):
3680
+ # In Firefox, graphics with a parent link also expose the parents link href value.
3681
+ # In Chromium, the link href value must be fetched from the parent object. (#14779)
3682
+ obj = obj.parent
3683
if (
3684
obj.role == controlTypes.role.Role.LINK # If it's a link, or
3685
or controlTypes.state.State.LINKED in obj.states # if it isn't a link but contains one
0 commit comments