When I run my page through the W3C HTML validator, I get the following warning:

reference to non-existent ID "edit-vote"
<label for="edit-vote">Average: </label>

On my node, I am printing the fivestar widget using the following code:
print fivestar_widget_form($node);

Comments

Aniara.io’s picture

Version: 6.x-1.18 » 6.x-1.19

I have the same issue with Drupal 6.14 and Fivestar 6.x-1.19.

JimmyAx’s picture

I can confirm this issue with Drupal 6.15 and Fivestar 6.x-1.19.

andrewsuth’s picture

@maintainers: Any word on this? I really like to W3C validate ;)

ezra-g’s picture

We'd be happy to review a patch :).

background_guy’s picture

Are there any updates to this? 4 months with NO word, no updates, no patches, no recommendations? Very Sad!

ezra-g’s picture

This is a non-critical and probably minor bug. If you're feeling sad about it, I'd like to suggest submitting a patch ;) .

daniel wentsch’s picture

Subscribing (and looking for a solution myself, too).

Edit:
I just did a quick override inside my template.php to hardcode the correct id for the select. Not very elegant, but everything validates at least though.

/**
 * fix invalid label<-->ID relation
 * (edit-fivestar-rating <--> edit-fivestar-rating-1)
 *
 *
 * Theme the straight HTML version of the fivestar select list. This is used
 * to remove the wrapping 'form-item' div from the select list.
 */
function phptemplate_fivestar_select($element) {
  $select = '';
  $size = $element['#size'] ? ' size="'. $element['#size'] .'"' : '';
  _form_set_class($element, array('form-select'));
  $multiple = isset($element['#multiple']) && $element['#multiple'];
  '. $size .'>'. form_select_options($element) .'</select>';
  return '<select name="'. $element['#name'] .''. ($multiple ? '[]' : '') .'"'. ($multiple ? ' multiple="multiple" ' : '') . drupal_attributes($element['#attributes']) .' id="edit-fivestar-rating" '. $size .'>'. form_select_options($element) .'</select>';
}
nschloe’s picture

subscribing

parasolx’s picture

i'm also subcribing

whiteph’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

We can no longer support the Drupal 6 version of Fivestar. It is in security maintenance mode only. When the Drupal 8 version of Fivestar is released, the Drupal 6 version will be officially deprecated.

whiteph’s picture