Added type constraint to onHtmlError. Modified plugins to support this
changed type