fixed #3192 support for html5