[wp-trac] [WordPress Trac] #54344: Required inputs on multisite site registration page lack required attribute

WordPress Trac noreply at wordpress.org
Sat Oct 30 06:29:38 UTC 2021


#54344: Required inputs on multisite site registration page lack required attribute
-----------------------------------------+---------------------------------
 Reporter:  SteelWagstaff                |       Owner:  (none)
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Login and Registration       |     Version:  5.8.1
 Severity:  normal                       |  Resolution:
 Keywords:  needs-patch required-fields  |     Focuses:  accessibility, ui-
                                         |  copy
-----------------------------------------+---------------------------------
Changes (by sabernhardt):

 * keywords:  needs-patch => needs-patch required-fields
 * focuses:  accessibility => accessibility, ui-copy


Old description:

> When a user attempts to create a new site on a WordPress multisite which
> allows registered users to create new sites (wp-signup.php), the signup
> page treats both 'site domain' and 'site title' as required fields,
> displaying an error message if either field is left blank. However,
> neither of the inputs has the `required` attribute that would indicate
> that this is the case to users of assistive technology
> (https://github.com/WordPress/wordpress-
> develop/blob/ec5ed03bf62ebf72b36da58d3578d0c98cdda1d2/src/wp-
> signup.php#L152 + https://github.com/WordPress/wordpress-
> develop/blob/ec5ed03bf62ebf72b36da58d3578d0c98cdda1d2/src/wp-
> signup.php#L121-L124).
>
> Second, while the site domain input has a label, the label does not
> include the URL content that is included in the address by default (the
> root URL for the subdomain or subdirectory installation). As a result,
> users of screen readers and other assistive technology may attempt to
> input the entire URL they wish to use for their site, resulting in an
> invalid value.
>
> I'm willing and able to provide a simple patch to add the required
> attribute to the site domain and site title input fields, if that's
> considered a welcome addition to WP core.

New description:

 When a user attempts to create a new site on a WordPress multisite which
 allows registered users to create new sites (wp-signup.php), the signup
 page treats both 'site domain' and 'site title' as required fields,
 displaying an error message if either field is left blank. However,
 neither of the inputs has the `required` attribute that would indicate
 that this is the case to users of assistive technology
 ([https://github.com/WordPress/wordpress-
 develop/blob/ec5ed03bf62ebf72b36da58d3578d0c98cdda1d2/src/wp-
 signup.php#L152 Site Title input] + [https://github.com/WordPress
 /wordpress-develop/blob/ec5ed03bf62ebf72b36da58d3578d0c98cdda1d2/src/wp-
 signup.php#L121-L124 Site Name/Domain input]).

 Second, while the site domain input has a label, the label does not
 include the URL content that is included in the address by default (the
 root URL for the subdomain or subdirectory installation). As a result,
 users of screen readers and other assistive technology may attempt to
 input the entire URL they wish to use for their site, resulting in an
 invalid value.

 I'm willing and able to provide a simple patch to add the required
 attribute to the site domain and site title input fields, if that's
 considered a welcome addition to WP core.

--

Comment:

 Thanks for the report!

 You already noticed the related ticket:40361, with a larger scope, but
 this might be good to address separately (especially if the label text is
 improved).

 Also related: #32510

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


More information about the wp-trac mailing list