emit 'required' not 'required="1"'