Page 1 of 1

Search plugin causes page to fail XHTML 1.0 Transitional Validation

Posted: Sun Apr 29, 2007 9:46 pm
by heatherfeuer
I have been working on my web hosting site, updating it to CMSMS and ran across something interesting.  I create my pages and check for validation using the Firefox Web Developer tools.  The CSS validates no problem.  However, the HTML triggers the following:
This page is not Valid XHTML 1.0 Transitional!

Below are the results of checking this document for XML well-formedness and validity.

  1. Error Line 41, column 237: there is no attribute "onBlur" .

      ...defaultValue) this.value='';" onBlur="if(this.value=='') this.value=this.defa
Line 41 contains the following:

Code: Select all

<label for="cntnt01searchinput">Search</label>: <input type="text" name="cntnt01searchinput" id="cntnt01searchinput"
 value="Enter Search..." size="20" maxlength="50" onfocus="if(this.value==this.defaultValue) this.value='';" 
onBlur="if(this.value=='') this.value=this.defaultValue;" />
I have search all over the search module files to find where this "onBlur" line is, but can't find it.  Why is this particular function there, is it really needed and why does it fail?

Re: Search plugin causes page to fail XHTML 1.0 Transitional Validation

Posted: Mon Apr 30, 2007 12:09 am
by moorezilla
this is to make prepopulated text in the search text box disappear and reappear automatically when you click in and out of the box. to make it validate, you just need to make onBlur lowercase... ie. onblur.

Re: Search plugin causes page to fail XHTML 1.0 Transitional Validation

Posted: Mon Apr 30, 2007 12:19 am
by calguy1000
You originally didn't mention what version of CMS Made simple you're using.  but this should be fixed in 1.0.5, and if not it is fixed in 1.0.6

Re: Search plugin causes page to fail XHTML 1.0 Transitional Validation

Posted: Mon Apr 30, 2007 3:39 pm
by heatherfeuer
CalGuy, I have 1.0.5 installed on that site, but I've downloaded 1.0.6.  I'll get it upgraded and check again.

Moorezilla, I was going to simply take it out, but I couldn't even find where the actual reference was!

Re: Search plugin causes page to fail XHTML 1.0 Transitional Validation

Posted: Mon Apr 30, 2007 3:49 pm
by moorezilla
action.default.php

run a search on "hogan"

It's fixed in 1.06; I just checked.

Re: Search plugin causes page to fail XHTML 1.0 Transitional Validation

Posted: Mon Apr 30, 2007 11:06 pm
by heatherfeuer
moorezilla wrote: action.default.php
run a search on "hogan"
It's fixed in 1.06; I just checked.
Well! That was really obvious, huh?  :D ::)  I'll definitely be upgrading!

Re: Search plugin causes page to fail XHTML 1.0 Transitional Validation

Posted: Tue May 01, 2007 10:03 am
by moorezilla
A good rule of thumb: if something goes wrong, see what the rhodesian ridgeback is up to.