We already use the html5 doctype, so the placeholder should validate.Find:Replace with:Code: Select all
<input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />
Code: Select all
<input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" placeholder="{LA_SEARCH_MINI}" />
The current way of doing it withthe onclick/onblur looks a bit messy/long to me, with that javascript in.
Also, it doesnt work right. If you right click the form the message does not disappear.. Thoughts?