Code: Select all
document type does not allow element "Input" here; missing one of .... start-tag
XHTML has a requirement to enclose each of the elements in a containing element. I found suitable for my purpose. In the script function.search.php in the plugins directory, I modified the last line of the smarty_cms_function_search function to read ...
Code: Select all
return '<form method="get" action="http://www.google.com/search">
<p><input type="hidden" name="ie" value="utf-8" /></p>
<p><input type="hidden" name="oe" value="utf-8" /></p>
<p><input type="hidden" name="sitesearch" value="'.$domain.'" /></p>
<p><input type="text" id="textSearch" name="q" maxlength="255" value="" /></p>
<p><input type="submit" id="buttonSearch" value="'.$buttonText.'" /></p>
</form>';
As far as I can tell this doesn't cause any problem in validating the page as HTML 4.01 strict, not sure about other standards.
This works for me, but your mileage may differ.