[wp-trac] [WordPress Trac] #47018: No error message provided upon incomplete input in Tags Administration Screen

WordPress Trac noreply at wordpress.org
Wed Apr 6 13:31:59 UTC 2022


#47018: No error message provided upon incomplete input in Tags Administration
Screen
-------------------------------------+-------------------------------------
 Reporter:  conner_bw                |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  6.0
Component:  Taxonomy                 |     Version:  5.1.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-screenshots input-   |     Focuses:  ui, accessibility,
  validation has-patch needs-        |  javascript, administration
  testing                            |
-------------------------------------+-------------------------------------

Comment (by afercia):

 [attachment:"47018.3.diff"]

 - Removes the changes to `ajax-response.js`.
 - Trims the input field value in `window.validateForm` to pari what
 happens on the PHP and JS sides.

 To test:
 - Leave the 'Name' field empty and submit the form.
 - Check a notice appears with the message 'A name is required for this
 term.'
 - Check the 'Name' field gets a red border (actually, a CSS box-shadow).
 - Use your browser's dev tools inspector and check the polite ARIA live
 region with ID `a11y-speak-polite` contains the text 'A name is required
 for this term.'
 - Refresh the page.
 - Enter only a few spaces into the 'Name' field empty and submit the form.
 - Repeat the steps above.

 Note: when submitting the form, the submit button text gets remove. That's
 a separate issue tracked in #48030.

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


More information about the wp-trac mailing list