How is the error dealt with on Html5? We should keep the same API as Html5.