The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Two validation bugs in Twenty Eleven (5 posts)

  1. asd
    Posted 4 years ago #

    When running a clean wordpress install with the Twenty Eleven theme and remove the first example post and comment the following invalid happens:

    There is a page telling me there are no posts available. This page contains a search bar with the same id keyword "search" as the one in the upperright corner. Two id attributes with the same keyword on one page are not allowed.

    In the footer there is an element a which contains a rel attribute with the keyword "generator" which is not allowed, resulting in the following validation error:

    Bad value generator for attribute rel on element a: Keyword generator is not registered.

  2. Mahox
    Posted 4 years ago #

    It's a shame that something like the default theme of WordPress isn't even W3 validated. Duplicate ID in HTML... Who does these things nowadays?

  3. Rev. Voodoo
    Posted 4 years ago #

    the html5 spec isn't even finalized, and IIRC, there has been debate over proper rel usage. The html5 validator even notes that it is experimental.... some things will kick up errors, the rel attributes are on such thing.

    As for the duplicate ID thing, it only happens if you have 2 search bars on your page at the same time. So yes, the 404 page may get it. But under normal circumstances, that will not occur

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    I think the 404 page issue is a valid one. All it needs is for a second version of searchform.php with a different id to be used. Heck - the id could even be created by PHP conditionally.

  5. asd
    Posted 4 years ago #

    As far as I know has the rel attribute with the keyword "generator" never been valid for a and area elements. So although the HTML5 specification is still experimental, this is still wrong.

    As for the duplicate searchform id's: Even though this isn't a normal circumstance, it can still occur, so it still is an issue in my opinion.

Topic Closed

This topic has been closed to new replies.

About this Topic