fix wrong scope for HTML text input event handlers

This fix is included in the following larger commit in the master branch
of Aria Templates (released in v1.3.3):
bbed68b66aebcc9815986d7cfe6e15ebf973b1a3
1.2.7F