Title: HTML 5 Error &#8211; Empty Action Attribute
Last modified: August 30, 2016

---

# HTML 5 Error – Empty Action Attribute

 *  Resolved [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/html-5-error-empty-action-attribute/)
 * Hi !
 * W3C HTML 5 checker report an error on how the search form is returned.
 * Bad value for attribute action on element form: Must be non-empty.
 *     ```
       From line 444, column 5; to line 444, column 58
   
       get">↩				<form action="" method="post" class="searchandfilter">↩
       ```
   
 * Indeed, action=”” is invalid.
 * According to my template theme, this could be added in the code source to ppoduce
   valid search field:
    `action="<?php echo esc_url( home_url( '/' ) ); ?>">`
 * It only has to be included on the search-filter.php file line 1092 which currently
   looks like like this
 *     ```
       $returnvar .= '
       				<form action="" method="post" class="searchandfilter'.$addclass.'">
       					<div>';
       ```
   
 * Could you please include this simple fix ?
 * HTML 5 error are bad for SEO and for compatibility 🙂
 * Thanks for listening !
 * [https://wordpress.org/plugins/search-filter/](https://wordpress.org/plugins/search-filter/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [James_tnf](https://wordpress.org/support/users/james_tnf/)
 * (@james_tnf)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/html-5-error-empty-action-attribute/#post-6640296)
 * I’ve just hit the same issue.
 * I’d also really appreciate a fix on this please.
 *  Plugin Author [Ross Morsali](https://wordpress.org/support/users/designsandcode/)
 * (@designsandcode)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/html-5-error-empty-action-attribute/#post-6640300)
 * Will push a fix for this soon 🙂
 *  [James_tnf](https://wordpress.org/support/users/james_tnf/)
 * (@james_tnf)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/html-5-error-empty-action-attribute/#post-6640301)
 * Brilliant, thanks!
 *  Thread Starter [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/html-5-error-empty-action-attribute/#post-6640302)
 * Resolved ! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘HTML 5 Error – Empty Action Attribute’ is closed to new replies.

 * ![](https://ps.w.org/search-filter/assets/icon-256x256.png?rev=3096093)
 * [Search & Filter](https://wordpress.org/plugins/search-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/search-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-filter/reviews/)

## Tags

 * [attribute](https://wordpress.org/support/topic-tag/attribute/)
 * [html5](https://wordpress.org/support/topic-tag/html5/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 4 replies
 * 3 participants
 * Last reply from: [X-Raym](https://wordpress.org/support/users/x-raym/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/html-5-error-empty-action-attribute/#post-6640302)
 * Status: resolved