Issue #5873: Fix issues for test
Update html5 engine