Support » Requests and Feedback » Two validation bugs in Twenty Eleven

  • 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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?

    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

    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.

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Two validation bugs in Twenty Eleven’ is closed to new replies.