Improvements to the HTML5 base.