Make WordPress Core


Ignore:
Timestamp:
05/04/2008 09:28:12 PM (17 years ago)
Author:
westi
Message:

Add ARIA markup for required fields. Fixes #6914 props MarcoZ.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/comments.php

    r7360 r7888  
    7979<?php else : ?>
    8080
    81 <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
     81<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
    8282<label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
    8383
    84 <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
     84<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
    8585<label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
    8686
Note: See TracChangeset for help on using the changeset viewer.