PDA

View Full Version : HTML validation



fractal
10-31-2007, 06:47 PM
Going to page http://stats.free-dc.org/users/dcr.php (or pretty much any other page) and selecting the w3c validator button in the lower left button takes one to http://validator.w3.org/check?uri=http%3A%2F%2Fstats.free-dc.org%2Fusers%2Fdcr.php which claims


This page is not Valid HTML 4.01 Transitional!
Result: Failed validation, 984 Errors
Address:
Encoding: utf-8
Doctype: HTML 4.01 Transitional
Root Element: HTML


plus a whole list of errors. You might consider removing the button if you don't want to fix the mostly benign errors.

IronBits
10-31-2007, 07:08 PM
... don't click that button ... :looney:
Read the stats instead. :smoking:
oh, and if you have spare time, maybe you can convince Bok you can help. :thumbs:

gopher_yarrowzoo
11-01-2007, 07:10 PM
But IB he's right there are a load of bugs on that page..
I think it's probably a missing line or 2 in the script that are causing the majority of the 984 errors...

Line 225: <td class='thread-table2' width='3%' align='left'>1 </a></td>
I'm betting it should read
Line 225: <td class='thread-table2' width='3%' align='left'><a href='/users/drc.php?somethinghere'>1 </a></td>

327 lines in the table,3 errors per table line..
327x3=981 errors.
The other 3 are just silly ones maybe move the <!-- away from the script tag and rewrite the tag slightly so it plays ball!
Oh and check the Meta tag = correct Char encoding too..
Bok - fix please...

LAURENU2
11-01-2007, 08:15 PM
We are Free-DC We don' follow the Rule
___>We are Free and we do DC<___

:banana: >>>Read the stats instead.<<<:banana:

IronBits
11-01-2007, 08:37 PM
I'll poke around this week-end and see if I can fix up some of them errors.
In the meantime, enjoy the stats, they are not broken. :)

IronBits
11-03-2007, 04:52 PM
Ok, all better. :thumbs: with the following exceptions.

The following error will be corrected when Bok edits http.conf so the Server stops serving up utf-8 or adds iso-8859-1

http://validator.w3.org/images/info_icons/warning.png Character Encoding mismatch!
The character encoding specified in the HTTP header (utf-8) is different from the value in the <meta> element (iso-8859-1). I will use the value from the HTTP header (utf-8) for this validation.

The following errors below, are in a single file that Bok will have to figure out, and I've emailed him about the problem.
http://validator.w3.org/images/info_icons/error.png Line 176, Column 30: document type does not allow element "SCRIPT" here; assuming missing "CAPTION" start-tag.<script type="text/javascript"><!--
http://validator.w3.org/images/info_icons/error.png Line 187, Column 15: end tag for "CAPTION" omitted, but its declaration does not permit this. </table>
You forgot to close a tag, or
you used something inside this tag that was not allowed, and the validator is complaining that the tag should be closed before such content can be allowed.The next message, "start tag was here" points to the particular instance of the tag in question); the positional indicator points to where the validator expected you to close the tag.
http://validator.w3.org/images/info_icons/info.png Line 176, Column 0: start tag was here.<script type="text/javascript"><!--
http://validator.w3.org/images/info_icons/error.png Line 187, Column 15: end tag for "TABLE" which is not finished. </table>

IronBits
11-03-2007, 04:59 PM
Of course, if the dcr stats pages don't work as they once did, let me know and I'll go fix the code again. ;) :looney:

fractal
11-03-2007, 06:19 PM
oh, and if you have spare time, maybe you can convince Bok you can help. :thumbs:You might not suggest that if you ever saw the HTML I write (aka the site in my profile) ;)

IronBits
11-04-2007, 03:20 PM
Well, it appears everything is back to normal once again, as far as HTML validation goes that is. ;)

Bok
11-04-2007, 03:23 PM
Thanks for the help IB !!! :thumbs:

Bok :cheers:

LAURENU2
11-04-2007, 03:32 PM
Well, it appears everything is back to normal once again, as far as HTML validation goes that is. ;)
Your the Man IB :thumbs:

:umm: OK what else needs fixing around here:rotfl:

gopher_yarrowzoo
11-04-2007, 06:32 PM
Erm IB hmm are we supposed to be able to click on the username / team name and it go some place it doesn't you may have fixed the errors but not really..
all you did was edited the php and removed the offending </a> :Pokes:
.. begin hint! ..
Now IB, I say I'd fix it but I wouldn't know where to start, depends on how it grabs the data really and if you can do user lookup or not...
.. end hint! ..

LAURENU2
11-04-2007, 08:21 PM
Erm IB hmm are we supposed to be able to click on the username / team name and it go some place it doesn't you may have fixed the errors but not really..
all you did was edited the php and removed the offending </a> :Pokes:
.. begin hint! ..
Now IB, I say I'd fix it but I wouldn't know where to start, depends on how it grabs the data really and if you can do user lookup or not...
.. end hint! ..
May your mouse button is bad :bonk: it works for me
Can you give a link to show us

IronBits
11-04-2007, 09:00 PM
Erm IB hmm are we supposed to be able to click on the username / team name and it go some place it doesn't you may have fixed the errors but not really..
all you did was edited the php and removed the offending </a> :Pokes:
I don't know if there were any clickable links for UserName or Team Name.
The 'code' I looked at was not producing anything to put in the (a href....)something goes here(/a) so yes, I removed them until I can get with Bok to find out what, if anything, was supposed to be happening.
It displays html compliant pages. That's what was requested, so that's what you get, so far. ;)

Bok
11-04-2007, 11:10 PM
Simple enough to add a link to the users.php page :)

And, no, it was never in before..

IB, want to give it a go?

Bok

IronBits
11-05-2007, 12:50 AM
Sure, maybe tomorrow when I get home from work, I'll take a look and see what I can come up with.

IronBits
11-06-2007, 07:40 PM
Ok, added the hyperlinks for UserName and TeamName.

If you were to click here: http://stats.free-dc.org/users/dcr.php
Then click on your UserName, it will display only the projects you have stats for.
Or, if you click on your TeamName, it will display the stats for every project your team participates in, or something like that... :looney:

And all HTML compliant to. :p

The document located at ( http://stats.free-dc.org/users/dcr.php ) was checked and found to be valid HTML 4.01 Transitional.
http://www.w3.org/Icons/valid-html401-blue

gopher_yarrowzoo
11-07-2007, 02:12 AM
Smoking :smoking: :smoking:
Go have a :cheers: or :cheers: :cheers: from the :fridge: on my IB.

IronBits
11-07-2007, 06:29 PM
:drink: :geezer: