Skip to content

Commit

Permalink
In Internet Explorer and other MSHTML controls, fields marked as cont…
Browse files Browse the repository at this point in the history
…aining an invalid entry are now handled correctly.

This relates to aria-invalid being set on an element. Previously, this caused an exception because of a misspelling in the MSHTML code.
Fixes #3256.
  • Loading branch information
jcsteh committed May 30, 2013
1 parent 4db91e5 commit 2b65e74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/NVDAObjects/IAccessible/MSHTML.py
Expand Up @@ -622,7 +622,7 @@ def _get_states(self):
states.add(controlTypes.STATE_COLLAPSED)
ariaInvalid=self.HTMLAttributes['aria-invalid']
if ariaInvalid=="true":
states.add(controlTypes.STATE_INVALID)
states.add(controlTypes.STATE_INVALID_ENTRY)
ariaGrabbed=self.HTMLAttributes['aria-grabbed']
if ariaGrabbed=="true":
states.add(controlTypes.STATE_DRAGGING)
Expand Down
2 changes: 1 addition & 1 deletion source/virtualBuffers/MSHTML.py
Expand Up @@ -94,7 +94,7 @@ def _normalizeControlField(self,attrs):
elif ariaExpanded=="false":
states.add(controlTypes.STATE_COLLAPSED)
if attrs.get('HTMLAttrib::aria-invalid','false')=='true':
states.add(controlTypes.STATE_INVALID)
states.add(controlTypes.STATE_INVALID_ENTRY)
if attrs.get('HTMLAttrib::aria-multiline','false')=='true':
states.add(controlTypes.STATE_MULTILINE)
if attrs.get('HTMLAttrib::aria-dropeffect','none')!='none':
Expand Down
1 change: 1 addition & 0 deletions user_docs/en/changes.t2t
Expand Up @@ -7,6 +7,7 @@

== Bug Fixes ==
- Correct characters are produced when typing in NVDA's own user interface while using a Korean or Japanese input method while it is the default method. (#2909)
- In Internet Explorer and other MSHTML controls, fields marked as containing an invalid entry are now handled correctly. (#3256)


= 2013.1 =
Expand Down

0 comments on commit 2b65e74

Please sign in to comment.