[wp-trac] [WordPress Trac] #15080: Comment Form Should use HTML5 input types for better accessibility

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 9 17:03:15 UTC 2010


#15080: Comment Form Should use HTML5 input types for better accessibility
---------------------------+------------------------------------------------
 Reporter:  jorbin         |       Owner:           
     Type:  enhancement    |      Status:  new      
 Priority:  normal         |   Milestone:  3.1      
Component:  Accessibility  |     Version:  3.0      
 Severity:  normal         |    Keywords:  has-patch
---------------------------+------------------------------------------------

Comment(by demetris):

 I looked into this a few weeks ago, saw some things I did not like and
 decided to forget about it for now.

 I do not recollect exactly what the things I did not like were, but
 something that stands out is that more and more browsers(1) start acting
 on these input types.  One important thing they do is validation.  They do
 that in different ways, and sometimes things go very wrong:

 http://getsatisfaction.com/huffduffer/topics/opera_not_recognising_eu_on_input_type_url

 :-D

 Also, I am not sure what the consensus is about these input types among
 accessibility folks.

 So, I would not like to see this added to default template functions until
 we have done some proper research.

 For entertaining and impatient folks, changing the input types of the new
 comment form can be done easily by attaching a filter to
 comment_form_default_fields:

 {{{
 function my_html5_comment_form($i)
 {
     $i['email'] = str_replace('"text"', '"email"', $i['email']);
     $i['url']   = str_replace('"text"', '"url"', $i['url']);

     return $i;
 }
 }}}

 (1) Now Firefox too.  It was committed in August.  The current beta of
 Firefox 4 should have it.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15080#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list