HTML5 shim compatibility