Forum Moderators: open
As it stands, most pages I write use the HTML 4.01 Transitional doctype. If I added a few trailing slashes and got rid of the target="_blank" attributes I know they would validate as XHTML 1.0 Strict... it's only the target attribute that's holding me back really.
No doubt, I will get rid of all the target's when browsers start supporting CSS3.
But, out of interest, I wanted to ask what doctypes people use, most of the time in October 2004?
Please no comments about forcing new windows. That's a separate discussion and personally, I can't stand it when different sites open up in the same tab over the top of something I'm already reading.
a little bit of javascript which checks links for rel="external" and then applies the anchor element a target="_blank" attribute from the DOM
If I understand this right, as soon as your JavaScript runs, your DOM will no longer be valid XHTML Strict. Using JavaScript may fool the validator, but it doesn't make your pages valid.
Once I have all sites into 4.01 Strict, I'm going to take a week or so and move to XHTML trans at least, and strict where possible. Probably start after the first of the year - nice long dark winter days with snow and a fire in the fireplace....
That's why I have such an issue with the target attribute not being a valid part of XHTML 1.0 Strict markup, even though it remains a valid part of the DOM.
Roll on CSS 3