WordPress.org

Ready to get started?Download WordPress

Forums

HTML Validation Error (10 posts)

  1. baszer
    Member
    Posted 3 years ago #

    Hi, I am getting close by finishing my theme.

    I validated my theme and got some errors, the first three I don't know what they mean.

    example:

    Bad value EditURI for attribute rel on element link: Keyword edituri is not registered

    Because the validator says I have to look in line 19, but in the header there is no line like that... :(

    Can somebody give me the golden tip?

  2. baszer
    Member
    Posted 3 years ago #

    anybody?

  3. baszer
    Member
    Posted 3 years ago #

    I got the errors in the lines. Because of the weird rel attribuut

    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://test.eenwebsitevanbas.nl/xmlrpc.php?rsd" />

    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://test.eenwebsitevanbas.nl/wp-includes/wlwmanifest.xml" />

    <span class="category-icon"><a href="http://test.eenwebsitevanbas.nl/category/geen-categorie/" title="Alle berichten bekijken in Geen categorie" rel="category tag">Geen categorie</a></span>

    comes from the line of code:
    <span class="category-icon"><?php the_category(', ') ?></span>

    as you can see in the last line, there is (as far as I know) nothing wrong with my script. So how can I make sure the error disapears

  4. Andrei Olsen
    Member
    Posted 3 years ago #

    These link types I believe are not part of HTML5 spec, but you have to remember it's a working draft. Plus, the validator itself is in experimental stage.

    wlwmanifest, EditURI are used by blog client software as far as I know
    http://codex.wordpress.org/Weblog_Client

    If these errors really bug you you can always clean up the header:
    http://wpengineer.com/1438/wordpress-header/

  5. baszer
    Member
    Posted 3 years ago #

    thanks Andrei for you reply.

    The errors don't really bug me, but I make this theme for the wordpress website. So I thought it needs to have zero errors on HTML validation. Or are these 'errors' allowed?

  6. Andrei Olsen
    Member
    Posted 3 years ago #

    Well... there's a lot of back and forth
    http://lists.w3.org/Archives/Public/public-html/2011Feb/att-0481/issue-118-decision.html

    As far as I understand, current spec doesn't allow these, so you can't use them if you want the site to validate. But it's unlikely anything will be broken if you do.

    It would be interesting to hear what the core WP devs think about this issue and/or are planning to do.

  7. sourcelink
    Member
    Posted 3 years ago #

    Well this could be one of those issues that drag on for a while.
    I also have an issue with my website not validating because of this little bug.

    Although the presentation looks fine it's annoying from an SEO point view that the site cannot be fully validated :-)

    Thanks for you input Andrei it went some way in providing an answer. Baszer I hope you finish your theme.

  8. esmi
    Forum Moderator
    Posted 3 years ago #

    1. The HTML5 validator is experimental

    2. The HTML 5 aspec is still in draft., It won't become a formal W3C spec until approx 2014 according to W3C.

    So you're currently using an experimental validator to check against a draft (and changeable) DOCTYPE spec.

  9. baszer
    Member
    Posted 3 years ago #

    @sourcelink, my theme is already two weeks waiting for approval. Last time was way faster, but I have the time :)

  10. suraj pal sharma
    Member
    Posted 2 years ago #

    try changing wp-includes/category-template.php replace 'rel="category tag"' by 'rel="tag"'

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.