Allow "on" attributes that have a dash (bug 981221)

https://bugzilla.mozilla.org/show_bug.cgi?id=981221