1/* global Cookies */ 2jQuery( function( $ ) { 3 // Select all elements with the class [role="alert"] attribute that contain text 4 var notices = $('[role="alert"]').filter(function() { 5 return $(this).text().trim().length > 0; 6 }); 7 8 if (notices.length > 0) { 9 /** 10 * Queuing the focus event at last of the event queue 11 * to override any other focus events in case of critical error. 12 * For example, "Skip to content" was being focused just after 13 * the error, resulting in the voiceover breaking the message 14 * in between. 15 */ 16 setTimeout(function() { 17 $(notices[0]).attr('tabindex', '-1').trigger( 'focus' ); 18 }); 19 } 20});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.