HTML and IE8 compat fixes