Jump to content

(SOLVED)Validation Output: 4 Errors /blocktopmenu


Recommended Posts

Hi all!!

I get this in w3c (the image)

It all have to do with this code in the great module "Blocktopmenu".

Anyone recognize this?


<form id="searchbox" action="{$base_dir_ssl}search.php" method="get" >

<input type="hidden" value="position" name="orderby" />
<input type="hidden" value="desc" name="orderway" />
<input type="text" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query}{/if}" />

</form>



Stefan

32126_Oh3BNM0lImoFSia3Xsnt_t

Link to comment
Share on other sites

There is a updated version of the module, 2.6 that you can find here
And I believe that the code miss a div,fieldset or a similar tag, because it say that the input element is not allowed there and it have to be closed by a block tag. It is probably because of the input hidden is in a open form tag. Perhaps it works to wrap the input hidden with a div or fieldset tag but I'm not really sure.

Link to comment
Share on other sites

It's because the module has put an input inside a list item, which is not allowed if you want to be standards-compliant. Moving the input out of the list should fix the problem.


Thanks fellas!

I´ll do it! Amazing - voices from down under and sweden in the same thread:) Half around the globe!

Cheers!

Stefan // http://fineprint.se
Link to comment
Share on other sites

×
×
  • Create New...