Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: Parsing errors?

  1. #1
    Regular Coder
    Join Date
    Sep 2007
    Posts
    809
    Thanks
    5
    Thanked 2 Times in 2 Posts

    Parsing errors?

    Hi all,

    I'm trying to validate my document, but I've got 3 errors that I just can't seem to get rid of:

    http://validator.w3.org/check?uri=ht...language=en-gb

    The errors are appearing on lines 877 & 911 but my document doesnt even have that many lines

    Can anyone advise?

    Many thanks,

    Greens85
    Last edited by greens85; 10-20-2009 at 01:06 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    but my document doesnt even have that many lines

    Can anyone advise?
    It has! Take the parsed html output from your browser's "view source" option.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Just remove the </div> tag on the line it says its at. That will solve your other issues as well.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    Regular Coder
    Join Date
    Sep 2007
    Posts
    809
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Didnt think of the php that was being produced!

    However when I do a search for the line from the source code, it tells me the line is:

    <div id="footer">

    but that is closed by a div then <div id="partners"> is opened and closed... so I don't see why this is a problem

    Obviously there is an extra div tag in there but I dont think it is where the source code is pointing me to!

  • #5
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by greens85 View Post
    Didnt think of the php that was being produced!

    However when I do a search for the line from the source code, it tells me the line is:

    <div id="footer">

    but that is closed by a div then <div id="partners"> is opened and closed... so I don't see why this is a problem

    Obviously there is an extra div tag in there but I dont think it is where the source code is pointing me to!
    When using the HTML validator I almost always add the options to display the source code and to display verbose errors (these options are in the "More Options" dropdown on the front page of the validator where you would have first entered your URL for testing). Once you do that the validator will create an inline link to the exact place where your source code error is located so that there is no guess work. In this case it is one of the closing </div> tags directly preceding your footer div. You have simply added four closing div tags there when only 3 were needed.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #6
    Regular Coder
    Join Date
    Sep 2007
    Posts
    809
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Rowsdower,

    Many thanks! Thats done the trick...

    I shall use the options you mentioned from now on, should help me find the errors faster & stop me tearing my hair out!


  •  

    Posting Permissions

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