Issue 1644 - Recognize <input type=image> elements with the correct type on Safari

--HG--
extra : rebase_source : dfe8250b038ebee99e86e8d55b669e9dd4afa898