allow pattern attr on input element