Search plugin causes page to fail XHTML 1.0 Transitional Validation

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
heatherfeuer

Search plugin causes page to fail XHTML 1.0 Transitional Validation

Post 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?
moorezilla

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

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post 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
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
heatherfeuer

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

Post 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!
moorezilla

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

Post by moorezilla »

action.default.php

run a search on "hogan"

It's fixed in 1.06; I just checked.
heatherfeuer

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

Post 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!
moorezilla

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

Post by moorezilla »

A good rule of thumb: if something goes wrong, see what the rhodesian ridgeback is up to.
Locked

Return to “CMSMS Core”