Index: wp-content/themes/twentytwelve/js/a11yfix.js
===================================================================
--- wp-content/themes/twentytwelve/js/a11yfix.js	(revision 0)
+++ wp-content/themes/twentytwelve/js/a11yfix.js	(revision 0)
@@ -0,0 +1,17 @@
+var is_webkit = navigator.userAgent.toLowerCase().indexOf('webkit') > -1;
+var is_opera = navigator.userAgent.toLowerCase().indexOf('opera') > -1;
+var a11yLinks = [];    
+
+if((is_webkit || is_opera) && typeof(document.getElementsByClassName) !== 'undefined' && document.getElementById !== 'undefined'  ) {
+    a11yLinks = document.getElementsByClassName('assistive-text');
+    for(var i=0;i<a11yLinks.length;i++){
+        a11yLinks[i].onclick=function(){
+            var newFocusElement = document.getElementById(this.hash.substring(1));
+            // Don't bother continueing if the element doesn't exist
+            if (newFocusElement){
+                newFocusElement.setAttribute('tabindex', '-1');
+                newFocusElement.focus();
+            }
+        }
+    }
+} 
Index: wp-content/themes/twentytwelve/functions.php
===================================================================
--- wp-content/themes/twentytwelve/functions.php	(revision 22330)
+++ wp-content/themes/twentytwelve/functions.php	(working copy)
@@ -103,6 +103,12 @@
 	wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '1.0', true );
 
 	/*
+	 * Adds JavaScript for fixing an accessability bug in webkitand opers.
+	 */
+
+	wp_enqueue_script( 'twentytwelve-a11y', get_template_directory_uri() . '/js/a11yfix.js', array(), '1.0', true );
+
+	/*
 	 * Loads our special font CSS file.
 	 *
 	 * The use of Open Sans by default is localized. For languages that use
