Updates isHtml5 functionality