WordPress.org

Support

Support » Themes and Templates » [Resolved] duplicate specification of attribute "class" when validating

[Resolved] duplicate specification of attribute "class" when validating

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    @esmi

    Forum Moderator

    <form name="registerform" id="registerform" action="http://thebalanceyouneed.com/wp-login.php?action=register" method="post">
    <h1>Not a member yet? Sign Up!</h1>
    <label class="grey" for="user_login">Username</label>
    <input class="field input" type="text" name="user_login" id="user_login" value="" size="20" tabindex="10" />
    <label class="grey" for="user_email">E-mail</label>
    <input class="field input" type="text" name="user_email" id="user_email" value="" size="25" tabindex="20" />
    <label id="reg_passmail">A password will be e-mailed to you.</label>
    <input type="submit" name="wp-submit" id="submit" value="Register" />
    </form>

    @esmi

    Much appreciated, that worked beautifully.

    Would you have a minute to look at my page in the w3 validator for a quick sec. thebalanceyouneed[dot]com

    Let me know if you see what the problem is at first glance I can’t find a problem causing everything to throw an error. I know it has to be something simple but my eyes and brain are not catching it.

    I have tried to re-save the urls with & in them but wordpress is stripping it back out to just read &.

    The others are throwing me for a loop.

    There is only 20 errors and they are all related to each other

    esmi

    @esmi

    Forum Moderator

    I’m seeing a lot of errors on image links that all have the format:

    <a href="http://domain_name/foo/bar"/>

    Notice the / before the closing >? This means that the <a tags are being parsed as self-closing – so an error is triggered when the validator hits to following </a>. How are you adding these image links to posts/pages? By hand or via a plugin or function? You need to get rid of the / in the first part of the link.

    Totally my fault for that, I was up til 3am one morning adding the links and just because I got in the habit of adding the “/” in my image urls I accidently added the “/” in my url also.

    Thanks for pointing it out.

    I had to laugh at myself for that one.

    esmi

    @esmi

    Forum Moderator

    Been There. Done That. Got the T-shirt. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] duplicate specification of attribute "class" when validating’ is closed to new replies.
Skip to toolbar