Index: iframe.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/iframe/iframe.module,v
retrieving revision 1.12
diff -u -p -r1.12 iframe.module
--- iframe.module	10 May 2009 00:04:27 -0000	1.12
+++ iframe.module	21 Dec 2009 10:27:36 -0000
@@ -409,8 +409,10 @@ function _iframe_sanitize(&$item, $delta
   // Add the widget label.
   $item['label'] = $field['widget']['label'];
 
-  // Ad identifier for the iframe html-code
-  $item['html-id'] = 'iframe-'.$delta;
+  // Add identifier for the iframe html-code
+  static $iframe_count = 0;
+  $item['html-id'] = 'iframe-'.$iframe_count;
+  $iframe_count++;
 }
 
 /**
