Fix type attributes not required in html5. Thanks @nternetinspired
Fix allow use of custom mime-types in HTML5