Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: Snews validation error in Xhtml validation  (Read 4533 times)

Rob

  • Full Member
  • ***
  • Karma: 1
  • Posts: 219
    • http://www.ruthinweather.co.uk
Snews validation error in Xhtml validation
« on: January 26, 2007, 09:32:56 AM »

Hi All,

When I try and validate my website I get the following error which is related to the way sNews displays its articles, any idea how to fix this.

Error Line 39, column 3: document type does not allow element "li" here; missing one of "ul", "ol" start-tag .
  • Logged
    The road the righteous travel is like the sunrise, getting brighter and brighter until daylight has come.
  • Harold

    • Full Member
    • ***
    • Karma: 0
    • Posts: 110
      • http://blog.haroldbeukers.nl/
    Snews validation error in Xhtml validation
    « Reply #1 on: January 26, 2007, 10:27:02 AM »

    this is how my index.php looks like (a small part of it):

    Code: [Select]
    <div class="box">
    <h2>New commentsh2>
    <ul>
    <? new_comments(5, 30); ?>
    </ul>
    </div>

    <div class="box">
    <h2>New Articles:h2>
    <ul>
    <? menu_articles(0,3); ?>
    </ul>
    </div>
    so, the best you can do is, to place an ul in the index.php

    maybe you deleted it...because when there are no comments...it also doesnt validate.
    it has discussed before somewhere on this forum :)
    « Last Edit: September 12, 2007, 11:23:01 PM by Harold »
    Logged
    E=Fb

    Rob

    • Full Member
    • ***
    • Karma: 1
    • Posts: 219
      • http://www.ruthinweather.co.uk
    Snews validation error in Xhtml validation
    « Reply #2 on: January 26, 2007, 11:51:44 AM »

    Fair enough I will give that a go.
    Logged
    The road the righteous travel is like the sunrise, getting brighter and brighter until daylight has come.

    Patric Ahlqvist

    • Nobodys perfect, but Im pretty effing close
    • ULTIMATE member
    • ******
    • Karma: 65
    • Posts: 4867
    • I'm a self-made man and worships my creator.
      • p-ahlqvist.com
    Snews validation error in Xhtml validation
    « Reply #3 on: January 26, 2007, 01:26:29 PM »

    A small sidenote here... When doing a fresh install it might not contain either new articles, past articles nor comments. The one, of these three, that is empty will not validate as the unordered list do not contain anything, see... ? So as soon as you have an item in all of those fields, you also validate...

    Fast fix - Delete
      round the thing that do not contain any ifno, til the time when it actually do... in index.php.
    Logged
    "It's only dead fish that goes with the flow... "
    Updated