Page 1 of 1

Search and XHTML Vaildation failure because of form 'name' attribute

Posted: Tue Oct 03, 2006 10:39 am
by Russ
Using the internal search in 1.02, I'm having problems getting it to validate with XHTML Strict because of the name stuff. Now normally I'd just remove it from the form, but this seems Smarty generated? Any ideas how to remove it?

"This page is not Valid XHTML 1.0 Strict!
Below are the results of checking this document for XML well-formedness and validity.

  1. Error Line 80 column 36: there is no attribute "name".

      <form id="cntnt01moduleform-1" name="cntnt01moduleform-1" method="get" action...."

Russ

Re: Search and XHTML Vaildation failure because of form 'name' attribute

Posted: Tue Oct 03, 2006 11:17 am
by Piratos
This is an error from modform.inc.php

Code: Select all

$text = '<form id="'.$id.'moduleform-'.$idsuffix.'" name="'.$id.'moduleform-'.$idsuffix.'" method="'.$method.'" action="'.$goto.'"';//moduleinterface.php
$id is in use for id and name.

Re: Search and XHTML Vaildation failure because of form 'name' attribute

Posted: Tue Oct 03, 2006 11:53 am
by Russ
Thanks very much Piratos.
By removing the
name="'.$id.'moduleform-'.$idsuffix.'"
from the line mentioned I got it to validate. I hope this is not going to affect anything else! ;-)

I also notice that the 'name' attribute appears quite a lot in this code. Not sure why?

Russ

Re: Search and XHTML Vaildation failure because of form 'name' attribute

Posted: Sun Oct 08, 2006 10:22 pm
by Kagee
I belive that's because the name attribute is allowed in XHTML 1.0 Traditional.