PDA

View Full Version : Help me validate my forum


Mijae
02-15-2005, 02:38 AM
I am getting 95 errors :(

http://validator.w3.org/check?uri=http://www.invoid.net/forum/index.php

Tell me where to start, and how :)

EDIT: Got down to 83 errors :( I can't get it lower :(
EDIT 2: Got down to 67 errors :(

What in gods name is general entity "threadid" not defined and no default entity and reference not terminated by REFC delimiter, like 50 of the errors come from those! I dont even know what that is :P

EDIT 3: Down to 25 errors, 32 errors were due to a missing amp; :speechless:

EDIT 4: Down to 19 errors, one mine (can't figure it out), and 18 from a tracked I use (eXtremetracking). Also, showthread.php has gotten from 270+ to 20 errors now.

Wow. This turned out to be fun :P

EDIT 5: Fixed table issue by removing thead

EDIT 6: AT LAST! This Page Is Valid XHTML 1.0 Transitional!

EDIT 7: How can I make this XHTML compliant?

<a target="_blank" href="http://t.extreme-dm.com/?login=ivtrack"><img src="http://u1.extreme-dm.com/i.gif" height=1 border=0 width=1 alt=""></a><script language="javascript1.2"><!--
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
</script><script language="javascript"><!--
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=\"http://t0.extreme-dm.com",
"/0.gif?tag=ivtrack&j=y&srw="+EXw+"&srb="+EXb+"&",
"l="+escape(EXd.referrer)+"\" height=1 width=1>");//-->
</script><noscript><img height=1 width=1 alt=""
src="http://t0.extreme-dm.com/0.gif?tag=ivtrack&j=n"></noscript>

I did everything the validator told me and I ended with java errors :(

On a side note, what does amp; do? Does it break anything? I am adding amp; everywhere the validator tells me to. Will it break the forum links? Altho so far it works, I am afraid of doing what I do.

Revan
02-15-2005, 06:56 AM
I clicked your link, and bring the following fixes for validation errors:

Make sure you use "" around every single attribute value. EX: u1.extreme-dm.com/i.gif" height=1 border=0 width=1 ===> u1.extreme-dm.com/i.gif" height="1" border="0" width="1"
<script language="javascript1.2"> this must be <script type="text/javascript">
<script language="javascript"> same as above.
t0.extreme-dm.com/0.gif?tag=ivtrack&j=n"> encode the & into &amp;


HTH


//out

cinq
02-15-2005, 07:04 AM
Sorry for the noobish question, but what are 'advantages' (if any) of being XHTML 1.0 compliant ?

Guy G
02-15-2005, 08:53 AM
all of your errors are very easy to fix..

for example:
Line 110, column 187: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified

...ttp://u1.extreme-dm.com/i.gif" height=1 border=0 width=1 alt=""></a><script l

Make sure you put " " for any attr you put, so it would look like this:
...ttp://u1.extreme-dm.com/i.gif" height="1" border="0" width="1" alt="">

than you get rid of a lot of errors...

The java script error is fixed by the <script type="text/javascript">

and the J errors are caused becasue of a wrong use of the &.
all & should be in a code, like so: &amp;

and for the img erros you are missing the closing tag, all img tags should be like so:
<img src="" alt"" ..... />

Thats about all of your errors... 5 min and u are done.
:)

Sorry for the noobish question, but what are 'advantages' (if any) of being XHTML 1.0 compliant ?
Also, there isnt any, its just fun to see your board XHTML validated and have that picture... lol

Dean C
02-15-2005, 09:53 AM
Put javascript in an external file ,the w3c validator doesn't like it :)

Mijae
02-15-2005, 12:43 PM
Put javascript in an external file ,the w3c validator doesn't like it :)
Thats what I already did, I made that tracker code validate, but I started getting java errors.

I guess I will make it an external file :P

EDIT: Stole a modified tracker code from another site and now it validates :P

Revan
02-15-2005, 06:33 PM
all of your errors are very easy to fix..

for example:


Make sure you put " " for any attr you put, so it would look like this:
...ttp://u1.extreme-dm.com/i.gif" height="1" border="0" width="1" alt="">

than you get rid of a lot of errors...

The java script error is fixed by the <script type="text/javascript">

and the J errors are caused becasue of a wrong use of the &.
all & should be in a code, like so: &amp;

and for the img erros you are missing the closing tag, all img tags should be like so:
<img src="" alt"" ..... />

Thats about all of your errors... 5 min and u are done.
:)Wow.. this post was SO different from my post? :rolleyes:


Sorry for the noobish question, but what are 'advantages' (if any) of being XHTML 1.0 compliant ?Well, to show the world you are not whipped by M$ and another one of those IE sheep, for one.
Writing standards compliant code, even more so XHTML 1.0 (or 1.1 if you're feeling tough) shows that you have taken the time to write code that will render 100 % in all browsers, which again shows that you care for your users.


//out