Improve cross-browser compatibility.