fixed #3192 support for html5
Merge pull request #4257 from chengstory/#3192

[ci skip]fixed #3192 support for html5