#566 Use HTML5 and other improvements for error()