fix webkit button behaviour in validator