SJP
11-11-2003, 02:41 AM
For the last couple days I've been trying to get my web page to validate. If I use the 4.01 Transitional DOCTYPE I only get a couple errors that I can live with. Basically I'm using two event handlers (onload and onmouseover) in an Iframe that aren't defined by the spec, but I'm going to leave them in, because they enable me to work around a couple nasty short comings in IE5+ and that accounts for most of my clients. I'd much rather use 4.01 Strict, because with the exception of those items I'm trying to comply but the validator complains about all sorts of other things I'm absolutely clueless how to fix or what I'm doing wrong and their simplistic explanations are no help. For example:
Line 111, column 16: there is no attribute "TARGET" (explain...).
<FORM TARGET="PAGE" ACTION="http://www.sanjuanpersonals.com/cgi-bin/cpy.pl"
Of course there is a TARGET attritbute for the FORM element. If I consult the 4.01 spec it says so! So you might be wondering why I care if the DOCTYPE is Transitional. If I leave it in my page completely breaks. Most of my CSS rules are flat out ignored! And incidently they themselves validate just fine. Here's another one:
Line 120, column 4: character data is not allowed here
NEW ID:<INPUT TYPE="text" NAME="NAME" SIZE=16 MAXLENGTH=24 VALUE=""><BR>
If I consult the 4.01 spec I can find examples where they did the very same thing so again I'm clueless what could be the problem. And enclosing the text in <LABEL></LABEL> elements makes no difference.
Has anyone else experienced similar woes? If I leave the DOCTYPE as simply 4.0 my page looks fine in all the browsers I can test (IE5+, NN6+, Opera and Konqueror). So I'm quickly coming to the conclusion that what the W3C says is irrevelant and I don't really want to take that position but I don't have many other options.
SJP
Line 111, column 16: there is no attribute "TARGET" (explain...).
<FORM TARGET="PAGE" ACTION="http://www.sanjuanpersonals.com/cgi-bin/cpy.pl"
Of course there is a TARGET attritbute for the FORM element. If I consult the 4.01 spec it says so! So you might be wondering why I care if the DOCTYPE is Transitional. If I leave it in my page completely breaks. Most of my CSS rules are flat out ignored! And incidently they themselves validate just fine. Here's another one:
Line 120, column 4: character data is not allowed here
NEW ID:<INPUT TYPE="text" NAME="NAME" SIZE=16 MAXLENGTH=24 VALUE=""><BR>
If I consult the 4.01 spec I can find examples where they did the very same thing so again I'm clueless what could be the problem. And enclosing the text in <LABEL></LABEL> elements makes no difference.
Has anyone else experienced similar woes? If I leave the DOCTYPE as simply 4.0 my page looks fine in all the browsers I can test (IE5+, NN6+, Opera and Konqueror). So I'm quickly coming to the conclusion that what the W3C says is irrevelant and I don't really want to take that position but I don't have many other options.
SJP