[wp-trac] [WordPress Trac] #24732: HTML5 required property to append or replace "aria-required"
WordPress Trac
noreply at wordpress.org
Fri Jul 12 11:05:11 UTC 2013
#24732: HTML5 required property to append or replace "aria-required"
-------------------------+-----------------------------
Reporter: MMN-o | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
-------------------------+-----------------------------
I found it slightly annoying that my browser kept sending the comment
forms on my blog even if I forgot to fill out name and email.
Fortunately HTML5 has a property for this, 'required', which can force
form fields to be filled before a user's browser submits the form.
Patch is attached that adds HTML5 required statement to required fields in
default {{{comment_form}}} function.
It may be an idea also to entirely remove the "aria-required" property, as
it is not really standardised.
For what I know, Wordpress tends to have <!DOCTYPE html>, which means the
property doesn't need to be " required='required'", but rather just "
required".
Both HTML5 and XHTML versions are attached.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24732>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list