nvda
fab35ec3 - Report aria-description always (PR #12500)

Commit
4 years ago
Report aria-description always (PR #12500) # Summary: The HTML attribute aria-description has been introduced as one aspect of supporting a broader concept of annotations on the web. It maps to accDescription. In contrast to other sources for accDescription such as title, our expectation is annotations should be reported whenever present. # Description of change: Experimental support added for reporting aria-description. Firefox use IA2 attribute 'description' matching accDescription to indicate source is aria-description. Chrome use IA2 attribute `description-from` with value of 'aria-description' to indicate source, otherwise fallback to Firefox behavior. # Other changes: * Rename UIA._getControlFieldForObject to _getControlFieldForUIAObject - Since type info in NVDA is not yet ubiquitous, a lot of development relies on text search / grep. - This name was easy to confuse with CompoundTextInfo._getControlFieldForObject * Add typing for virtual buffer / text info / fields normalaziation - Add return type info for XMLFormatting.XMLTextParser.parse - Try to confirm if data is an optional string, log a warning if it is None. * Use constants for Unicode specials - Symbols referenced regularly in the code, descriptions from https://en.wikipedia.org/wiki/Specials_(Unicode_block) -  OBJECT REPLACEMENT CHARACTER, placeholder in the text for another unspecified object, for example in a compound document. - � REPLACEMENT CHARACTER, used to replace an unknown, unrecognized, or unrepresentable character. * Remove ignoreEditableText param - As a result of this, controlStack previously had None inserted, now it can be empty. * Fix names, simplify logic in getTextWithFields - field -> childObject - field -> textWithEmbeddedObjectsItem
Author
Parents
Loading