[wp-trac] [WordPress Trac] #15081: Search Form should use type='search'
WordPress Trac
noreply at wordpress.org
Mon Mar 4 16:05:30 UTC 2013
#15081: Search Form should use type='search'
--------------------------------------+------------------
Reporter: jorbin | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.6
Component: Accessibility | Version:
Severity: minor | Resolution:
Keywords: has-patch twentythirteen |
--------------------------------------+------------------
Comment (by GaryJ):
Replying to [comment:11 lancewillett]:
> Patch is a great start. A few suggestions:
>
> If 'html5' is the format:
>
> 1. add {{{placeholder}}} element to search input, with something like
{{{<?php echo esc_attr_x( 'Search …', 'placeholder' ); ?>}}} as the
text
Please avoid using named entity references - [http://www.w3.org/TR/html-
polyglot/#named-entity-references polyglot documents] MUST use character
references instead, and SHOULD use hexadecimal references where possible.
{{{<?php echo esc_attr_x( 'Search …', 'placeholder' ); ?>}}}
If necessary, add a comment if you don't like magic numbers (not much
worse than magic abbreviations) without an explanation:
{{{<?php echo esc_attr_x( 'Search …', 'placeholder' ); //
horizontal ellipsis ?>}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15081#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list