示例#1
0
文件: MSHTML.py 项目: shaleenp/nvda
	def _get_liveRegionPoliteness(self) -> aria.AriaLivePoliteness:
		politeness = self.HTMLAttributes["aria-live"] or "off"
		try:
			return aria.AriaLivePoliteness(politeness.lower())
		except ValueError:
			log.error(f"Unknown live politeness of {politeness}", exc_info=True)
			super().liveRegionPoliteness
示例#2
0
	def _get_liveRegionPoliteness(self) -> aria.AriaLivePoliteness:
		politeness = self.IA2Attributes.get('live', "off")
		try:
			return aria.AriaLivePoliteness(politeness.lower())
		except ValueError:
			log.error(f"Unknown live politeness of {politeness}", exc_info=True)
			super().liveRegionPoliteness