Hi Stampie, thanks for the report.
At first I thought that this was just down to how strict you go with compliance (my site validates with the w3c validator - no warnings) but when I looked at the imagecheck function again
/includes/joomla.php
Code:
function ImageCheck( $file, $directory='/images/M_images/', $param=NULL, $param_directory='/images/M_images/', $alt=NULL, $name='image', $type=1, $align='middle', $title=NULL, $admin=NULL ) {
global $mosConfig_absolute_path, $mosConfig_live_site, $mainframe;
$cur_template = $mainframe->getTemplate();
$name = ( $name ? ' name="'. $name .'"' : '' );
It does look like a bug as this
Code:
$name = ( $name ? ' name="'. $name .'"' : '' );
seems to me to be trying to output the name attribute if one exists, otherwise do not output one.
which conflicts with the fact that a default value is assigned to $name in the function
Code:
function ImageCheck( $file, $directory='/images/M_images/', $param=NULL, $param_directory='/images/M_images/', $alt=NULL, $name='image', $type=1, $align='middle', $title=NULL, $admin=NULL )
I edited the function to have argument $name=NULL instead of $name='image' and this seems to do the trick