A test of beta4 at http://d-theme.com/tendu shows the theme as passing XHTML 1.0 Strict but having a doctype of transitional. Wave and Cynthia Says complain about some links. There are test buttons on the page for validation. These couple of small changes should make your theme pass all the validations for basic Web sites.

Comments

tombigel’s picture

Thanks. I'll look into it
Passing as many validations as possible is something I want for Tendu.

peterx’s picture

I updated http://d-theme.com/tendu to beta 5. Some errors.
The following lines both use content as the id/name.

<div id="content">
<a class="accessibility-target" name="content">

There should not be any white space at the start or end of an attribute's value:
<div id="block-user-0" class="block block-user block-even ">

* edited to add the code elements around the html.

tombigel’s picture

Version: 6.x-2.1-beta4 » 6.x-2.1-beta5

Your message is missing the code lines, but I know there is a <div id="content"> and <a name="content">, and that validators shout about it.
I'm not sure that this is not allowed.

Anyway I'm aware of it, and if I'll find a reference that will say that this is wrong I'll change it.

Thanks.

peterx’s picture

http://www.w3.org/TR/xhtml1/#h-4.10 refers to http://www.w3.org/TR/xhtml1/#C_8, which says both are fragment identifiers and have to be unique within a document. That means id and name go into the one list and have to be unique within the list.

They can be the same when on the same element. The W3 page uses the following line. Using the same name and id on the one element is common because id is the official id but some old Javascript still looks for name. The Document Object Model must keep a separate list of names just for Javascript.
<h2><a name="C_8" id="C_8">C.8.</a> Fragment Identifiers</h2>

tombigel’s picture

Status: Active » Fixed

Ok, thanks.

Fixed in DEV

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.