Results 1 to 19 of 19

Thread: HTML validation

  1. #1

    HTML validation

    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=ht...sers%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.

  2. #2
    Target Butt IronBits's Avatar
    Join Date
    Dec 2001
    Location
    Morrisville, NC
    Posts
    8,619
    ... don't click that button ...
    Read the stats instead.
    oh, and if you have spare time, maybe you can convince Bok you can help.

  3. #3
    Free-DC Semi-retire gopher_yarrowzoo's Avatar
    Join Date
    Mar 2002
    Location
    Knoxville, TN
    Posts
    3,985
    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...
    Semi-retired from Free-DC...
    I have some time to help.....
    I need a new laptop,but who needs a laptop when you have a phone...
    Now to remember my old computer specs..


  4. #4
    =>Team Joker<= LAURENU2's Avatar
    Join Date
    Dec 2004
    Location
    Chicago IL USA
    Posts
    5,478
    Blog Entries
    1
    We are Free-DC We don' follow the Rule
    ___>We are Free and we do DC<___

    >>>Read the stats instead.<<<

  5. #5
    Target Butt IronBits's Avatar
    Join Date
    Dec 2001
    Location
    Morrisville, NC
    Posts
    8,619
    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.

  6. #6
    Target Butt IronBits's Avatar
    Join Date
    Dec 2001
    Location
    Morrisville, NC
    Posts
    8,619
    Ok, all better. 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
    1. 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.
    1. Line 176, Column 30: document type does not allow element "SCRIPT" here; assuming missing "CAPTION" start-tag.<script type="text/javascript"><!--
    2. 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.
    3. Line 176, Column 0: start tag was here.<script type="text/javascript"><!--
    4. Line 187, Column 15: end tag for "TABLE" which is not finished. </table>

  7. #7
    Target Butt IronBits's Avatar
    Join Date
    Dec 2001
    Location
    Morrisville, NC
    Posts
    8,619
    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.

  8. #8
    Quote Originally Posted by IronBits
    oh, and if you have spare time, maybe you can convince Bok you can help.
    You might not suggest that if you ever saw the HTML I write (aka the site in my profile)

  9. #9
    Target Butt IronBits's Avatar
    Join Date
    Dec 2001
    Location
    Morrisville, NC
    Posts
    8,619
    Well, it appears everything is back to normal once again, as far as HTML validation goes that is.

  10. #10
    Administrator Bok's Avatar
    Join Date
    Oct 2003
    Location
    Wake Forest, North Carolina, United States
    Posts
    24,474
    Blog Entries
    13
    Thanks for the help IB !!!

    Bok

  11. #11
    =>Team Joker<= LAURENU2's Avatar
    Join Date
    Dec 2004
    Location
    Chicago IL USA
    Posts
    5,478
    Blog Entries
    1
    Quote Originally Posted by IronBits
    Well, it appears everything is back to normal once again, as far as HTML validation goes that is.
    Your the Man IB

    OK what else needs fixing around here

  12. #12
    Free-DC Semi-retire gopher_yarrowzoo's Avatar
    Join Date
    Mar 2002
    Location
    Knoxville, TN
    Posts
    3,985
    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>
    .. 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! ..
    Semi-retired from Free-DC...
    I have some time to help.....
    I need a new laptop,but who needs a laptop when you have a phone...
    Now to remember my old computer specs..


  13. #13
    =>Team Joker<= LAURENU2's Avatar
    Join Date
    Dec 2004
    Location
    Chicago IL USA
    Posts
    5,478
    Blog Entries
    1
    Quote Originally Posted by gopher_yarrowzoo
    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>
    .. 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 it works for me
    Can you give a link to show us

  14. #14
    Target Butt IronBits's Avatar
    Join Date
    Dec 2001
    Location
    Morrisville, NC
    Posts
    8,619
    Quote Originally Posted by gopher_yarrowzoo
    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>
    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.

  15. #15
    Administrator Bok's Avatar
    Join Date
    Oct 2003
    Location
    Wake Forest, North Carolina, United States
    Posts
    24,474
    Blog Entries
    13
    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

  16. #16
    Target Butt IronBits's Avatar
    Join Date
    Dec 2001
    Location
    Morrisville, NC
    Posts
    8,619
    Sure, maybe tomorrow when I get home from work, I'll take a look and see what I can come up with.

  17. #17
    Target Butt IronBits's Avatar
    Join Date
    Dec 2001
    Location
    Morrisville, NC
    Posts
    8,619
    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...

    And all HTML compliant to.

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

  18. #18
    Free-DC Semi-retire gopher_yarrowzoo's Avatar
    Join Date
    Mar 2002
    Location
    Knoxville, TN
    Posts
    3,985
    Smoking
    Go have a or from the on my IB.
    Semi-retired from Free-DC...
    I have some time to help.....
    I need a new laptop,but who needs a laptop when you have a phone...
    Now to remember my old computer specs..


  19. #19
    Target Butt IronBits's Avatar
    Join Date
    Dec 2001
    Location
    Morrisville, NC
    Posts
    8,619

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •