HTML Validation fail – ‘Selected’ injected twice
-
Hi, I’m using the currency switcher and when I check validation, I see that the element for the current item (in the select menu), has:
<option value="US" selected='selected' selected='selected'>United States dollar ($)</option>
You see how selected=’selected’ is appearing twice. The PHP only has a single line to generate each select item:
<?php foreach ($options as $key => $value) : ?> <option value="<?php echo $key?>" <?php echo selected($key, $selected_country ); ?>><?php echo $value; ?></option> <?php endforeach; ?>
So it must be injecting it in twice elsewhere in the plugin.
Funcitonality is fine, but it’s the only error in my validation check so my OCD is going nuts. ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘HTML Validation fail – ‘Selected’ injected twice’ is closed to new replies.