Backward compatibility remark: this regular expression is not equivalent to the previous test, so there may be attributes names which where previously accepted and which will no longer be included in the HTML (especially: attributes containing dashes...).