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: Search code does not Validate XHTML "UTF-8">  (Read 2306 times)

wellness

  • Newbie
  • *
  • Karma: 0
  • Posts: 6
Search code does not Validate XHTML "UTF-8">
« on: February 24, 2007, 01:56:44 am »

Hi, I clicked Validate and it returned ERROR: Any thoughts how to fix sNews.php file  //SEARCH

Here is code from validator:




XHTML validator ERROR

Error  Line 77 column 131: document type does not allow element "form" here; missing one of "object", "ins", "del", "map" start-tag.

...llness.com/" accept-charset="UTF-8">

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "

" or "

") inside an inline element (such as "", "", or "").
Logged

tarmithius13

  • Sr. Member
  • ****
  • Karma: 7
  • Posts: 469
Search code does not Validate XHTML "UTF-8">
« Reply #1 on: February 24, 2007, 02:16:48 am »

What version of sNews are you using? My site validates with the searchform. The error is stating that why the html is represented is invalid, which means that the nesting of the elements is off, it does not necessarily be that particular line, but something in that area threw a monkey wrench in the works.
Logged
The trick to flying is to throw yourself at the ground and miss.

Free sNews templates HERE

Mika

  • Hero Member
  • *****
  • Karma: 9
  • Posts: 1377
    • http://www.ni5ni6.com/
Search code does not Validate XHTML "UTF-8">
« Reply #2 on: March 01, 2007, 12:02:27 pm »

is not the part of the original package. Could you provide complete code of your search form?
Moved from Bug report
Logged
http://www.ni5ni6.com/ - Tutorials, Mods and How-To's about sNews CMS
sNews 1.6 Developers Edition - commented sNews 1.6 version

wellness

  • Newbie
  • *
  • Karma: 0
  • Posts: 6
Search code does not Validate XHTML "UTF-8">
« Reply #3 on: March 01, 2007, 06:48:57 pm »

Thanks for the help.. I changed my CSS and that fixed it.
Logged