? poll-mode-id.patch
Index: modes/binary.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/advpoll/modes/binary.inc,v
retrieving revision 1.7.2.32.2.3
diff -u -p -r1.7.2.32.2.3 binary.inc
--- modes/binary.inc	2 Jan 2009 03:56:37 -0000	1.7.2.32.2.3
+++ modes/binary.inc	5 Mar 2009 00:56:40 -0000
@@ -97,7 +97,7 @@ function advpoll_voting_binary_form(&$fo
     $form['vote'] = array(
       '#type' => 'submit',
       '#value' => t('Vote'),
-      '#attributes' => array('id' => 'edit-vote-binary-'. $binary_vote_count++),
+      '#id' => 'edit-vote-binary-'. $binary_vote_count++,
       /* TODO: re-enable this.
       '#ahah' => array(
         'path' => 'advpoll/js_vote',
Index: modes/ranking.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/advpoll/modes/ranking.inc,v
retrieving revision 1.8.2.37.2.9
diff -u -p -r1.8.2.37.2.9 ranking.inc
--- modes/ranking.inc	31 Jan 2009 16:46:23 -0000	1.8.2.37.2.9
+++ modes/ranking.inc	5 Mar 2009 00:56:40 -0000
@@ -145,7 +145,7 @@ function advpoll_voting_ranking_form(&$f
     $form['vote'] = array(
       '#type' => 'submit',
       '#value' => t('Vote'),
-      '#attributes' => array('id' => 'edit-vote-rank-'. $ranking_vote_count++),
+      '#id' => 'edit-vote-rank-'. $ranking_vote_count++,
     );
   }
   elseif ($node->build_mode == NODE_BUILD_PREVIEW) {
