Improve compatibility with Safari

Is there a reason why not this way?