w3 validates it, but ie wont render it.
|
Author | Content |
---|---|
Trevelyan Nov 16, 2004 11:02 AM EDT |
I'm not a web designer, I am mainly a programmer (in C).
But I was tasked to write something in php to import files
into a DB (mysql) While I was writing I tested it against Firefox and Konqueror, All seemed fine. But now I've sent it up the chain, where it was viewed in ie and its totally messed up. So I used the w3 validator, and fixed any errors (nearly all were BR outside of blocks like P or DIV) any way I now have: "This Page Is Valid HTML 4.0 Strict!" But it still does not show correct in ie =/ |
MycroftMkIV Nov 18, 2004 7:05 AM EDT |
IE has never conformed to any standards except Microsoft's. You must be having trouble with style sheets. There are workarounds to all your problems with IE, but you won't like them. Look on a web site that talks about CSS, such as http://thenoodleincident.com/tutorials/css/ or http://www.mezzoblue.com/zengarden/resources/ If you really get stuck, try asking a question in the forum at http://e107styles.org/ Mike |
Trevelyan Nov 18, 2004 10:10 AM EDT |
Thank you, but I have found the problem. It was my fault there was a typo. A ">" was missing, i.e. I had " |
Trevelyan Nov 18, 2004 10:14 AM EDT |
Thank you, but I have found the problem. It was my fault there was a typo. A ">" was missing, i.e. I had "</TD" not "</TD>". I am very suprised that the validator did not catch this, since every row of my tables would have had a <TD> dangling (loop generated) and "</TD" should have been flagged since it not valid text or a valid tag. Or is not the correct tool to find such errors? Sorry for any time I have taken up, and thank you. Thorben. (I used &XX; notation, and the preview replaced them in the text box, I had just looked at the preview, not what was in the text box so didn't notice and click submit. Is this not a problem dave? ) |
devvie Jul 11, 2006 2:29 PM EDT |
seems it shoujld have caught it, i use dreamweaver to check for errors previous to posting the files. |
grouch Jul 11, 2006 2:45 PM EDT |
The closing tag for a table cell is optional. There is no reason for the validator to warn you that you are missing something that is not required. |
dinotrac Jul 11, 2006 5:03 PM EDT |
Grouch - But a failure to close a tag is not optional. Shouldn't that have been caught? |
grouch Jul 11, 2006 6:57 PM EDT |
dinotrac: Not by the w3 validator. Its purpose is to check for valid HTML (or XHTML or CSS). That closing tag was not required for the page to be valid, so there was no reason for the validator to even look at it, let alone note that it was a malformed, unnecessary closing tag. The browser should have ignored the malformed, unnecessary tag, also. I've seen old Netscape pull similiar stunts with tables where it would mess up a page over something that it should have ignored. Mozilla seems fairly immune to such things. |
You cannot post until you login.