[wp-trac] [WordPress Trac] #34886: Search Form should not submit empty strings

WordPress Trac noreply at wordpress.org
Fri May 10 19:50:12 UTC 2019


#34886: Search Form should not submit empty strings
-------------------------+-----------------------------
 Reporter:  gibrown      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Themes       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+-----------------------------

Comment (by skorasaurus):

 Hi,

 since the last comment was 3 years ago and since WP has dropped support
 for IE <9
 and [https://caniuse.com/#feat=form-validation IE10 supports the required
 attribute], what is problematic about just adding the required attribute?

 Relatedly, this was not included in the gutenberg search block (to my
 surprise) or not [https://github.com/WordPress/gutenberg/pull/13583
 mentioned] in [https://github.com/WordPress/gutenberg/pull/4501 any]
 [https://github.com/WordPress/gutenberg/issues/1800 discussions]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/34886#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list