add oninput test
update oninput to use hasEvent
Merge pull request #1055 from patrickkettner/oninput

add oninput test