[#32162] Type attributes are not required in html(5) (Fix #312)