Bug 830197 - Check visibility of the element before typing. r=mdas