Topic-icon w3c validator error's

Active Subscriptions:

None
9 years 3 months ago #51107 by Vero
w3c validator error's was created by Vero
I want to validate my pages. w3c validator shows those error´s from sclogin:

Line 744, column 64: Attribute alt not allowed on element input at this point.
<div class="input-append input-block-level">
Line 752, column 60: Attribute alt not allowed on element input at this point.
</div>
Line 761, column 131: Attribute alt not allowed on element input at this point.
</form>
Line 728, column 359: The aria-labelledby attribute must point to an element in the same document.
....

Please help me to fix it.

Regards, Vero
The topic has been locked.
Support Specialist
9 years 3 months ago #51113 by mel
Replied by mel on topic w3c validator error's
Without having a URL of the page you're trying to validate and being able to see the source, here are some guesses.

In /modules/mod_sclogin/tmpl/joomlaLogin_vertical.php, try replacing
#1. Around line 27
<input name="username" tabindex="0" id="sclogin-username" class="input-block-level" alt="username" type="text"
with
<input name="username" tabindex="0" id="sclogin-username" class="input-block-level" type="text"

#2. Around line 36
<input name="<?php echo $passwordName; ?>" tabindex="0" id="sclogin-passwd" class="input-block-level" alt="password" type="password"
with
<input name="<?php echo $passwordName; ?>" tabindex="0" id="sclogin-passwd" class="input-block-level" type="password"

#3. Around line 56
<input id="sclogin-remember" type="checkbox" name="remember" class="inputbox" <?php echo $helper->getRememberMeValue();?> alt="Remember Me" />
with
<input id="sclogin-remember" type="checkbox" name="remember" class="inputbox" <?php echo $helper->getRememberMeValue();?> />

#4. Around line 63
<input id="sclogin-remember" type="hidden" name="remember" class="inputbox" <?php echo $helper->getRememberMeValue();?> alt="Remember Me" />
with
<input id="sclogin-remember" type="hidden" name="remember" class="inputbox" <?php echo $helper->getRememberMeValue();?> />

If that works, I'd recommend creating a template override for this file so you don't lose any changes on upgrade of SCLogin.

-Melissa
The topic has been locked.