When you hover over the shopping cart block icon in Firefox and Safari, you see the message of "View your cart items". However, when you mouse over the cart icon in Internet Explorer, you see "[]" instead of a message.

This is because IE picks up the tool tip from the contents of the 'alt' tag. So, to change this, add the "View your cart items" to the alt tag in the cart module. To do this, replace the $block['subject'] line found in the case 0 code (near line 25 in 4.6):

        $block['subject'] = t('Shopping cart'). ' '. l('<img src="'. drupal_get_path('module', 'cart') . $cart_image .'" alt="[]" />', 'cart/view', array('title' => t('View your cart items.')), NULL, NULL, FALSE, TRUE);
       

With this code:

 $block['subject'] = t('Shopping cart'). ' '. l('<img src="'. drupal_get_path('module', 'cart') . $cart_image .'" alt="View your cart items." />', 'cart/view', array('title' => t('View your cart items.')), NULL, NULL, FALSE, TRUE);

Thanks!

Comments

gordon’s picture

I have fixed this in CVS, and 4.7 this morning.

bobbia’s picture

That was quick - thanks!

gordon’s picture

Status: Active » Closed (duplicate)