CHtml::activeInputField, HTML5 and rules

Would be a good feature if activeInputField could be extended to make use of HTML5 validation where matching rules apply.

e.g. If I have a required rule the "required" attribute would be included with the input html.

This will prevent custom error messages to be displayed. Also it will behave very different from the rest of fields.

Since HTML5 validation isn’t supported by all major browsers I think it’s not a good idea to make this kind of validation.