--- zen-pure/zen/template.php 2008-11-03 13:53:34.000000000 -0800 +++ zen/zen/template.php 2008-11-03 17:19:01.000000000 -0800 @@ -180,7 +180,7 @@ function zen_preprocess_node(&$vars, $ho $classes[] = 'node-teaser'; // Node is displayed as teaser. } // Class for node type: "node-type-page", "node-type-story", "node-type-my-custom-type", etc. - $classes[] = 'node-type-' . $vars['type']; + $classes[] = zen_id_safe('node-type-' . $vars['type']); $vars['classes'] = implode(' ', $classes); // Concatenate with spaces } @@ -245,8 +245,8 @@ function zen_preprocess_block(&$vars, $h */ function zen_id_safe($string) { // Replace with dashes anything that isn't A-Z, numbers, dashes, or underscores. - $string = strtolower(preg_replace('/[^a-zA-Z0-9_-]+/', '-', $string)); - // If the first character is not a-z, add 'n' in front. + $string = strtolower(preg_replace('/[^a-zA-Z0-9-]+/', '-', $string)); + // If the first character is not a-z, add 'id' in front. if (!ctype_lower($string{0})) { // Don't use ctype_alpha since its locale aware. $string = 'id' . $string; }