File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,6 +194,12 @@ def _get_roleText(self):
194194 return roleText
195195 return super ().roleText
196196
197+ def _get_roleTextBraille (self ) -> str :
198+ roleTextBraille = self .IA2Attributes .get ('brailleroledescription' )
199+ if roleTextBraille :
200+ return roleTextBraille
201+ return super ().roleTextBraille
202+
197203 def _get_states (self ):
198204 states = super (Ia2Web ,self ).states
199205 # Ensure that ARIA gridcells always get the focusable state, even if the Browser fails to provide it.
Original file line number Diff line number Diff line change @@ -140,6 +140,9 @@ def _normalizeControlField(self, attrs): # noqa: C901
140140 roleText = attrs .get ("IAccessible2::attribute_roledescription" )
141141 if roleText :
142142 attrs ['roleText' ]= roleText
143+ roleTextBraille = attrs .get ("IAccessible2::attribute_brailleroledescription" )
144+ if roleTextBraille :
145+ attrs ['roleTextBraille' ]= roleTextBraille
143146 if attrs .get ("IAccessible2::attribute_dropeffect" , "none" ) != "none" :
144147 states .add (controlTypes .State .DROPTARGET )
145148 if role == controlTypes .Role .LINK and controlTypes .State .LINKED not in states :
You can’t perform that action at this time.
0 commit comments