webshims-rails 1.12.0 → 1.12.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/lib/webshims-rails/version.rb +2 -2
  3. data/vendor/assets/javascripts/webshims/extras/modernizr-custom.js +440 -440
  4. data/vendor/assets/javascripts/webshims/polyfiller.js +132 -91
  5. data/vendor/assets/javascripts/webshims/shims/combos/10.js +248 -91
  6. data/vendor/assets/javascripts/webshims/shims/combos/11.js +237 -84
  7. data/vendor/assets/javascripts/webshims/shims/combos/15.js +21 -8
  8. data/vendor/assets/javascripts/webshims/shims/combos/16.js +21 -8
  9. data/vendor/assets/javascripts/webshims/shims/combos/17.js +237 -84
  10. data/vendor/assets/javascripts/webshims/shims/combos/18.js +237 -84
  11. data/vendor/assets/javascripts/webshims/shims/combos/19.js +11 -7
  12. data/vendor/assets/javascripts/webshims/shims/combos/2.js +18 -8
  13. data/vendor/assets/javascripts/webshims/shims/combos/20.js +11 -7
  14. data/vendor/assets/javascripts/webshims/shims/combos/21.js +1 -1
  15. data/vendor/assets/javascripts/webshims/shims/combos/22.js +1 -1
  16. data/vendor/assets/javascripts/webshims/shims/combos/24.js +9 -6
  17. data/vendor/assets/javascripts/webshims/shims/combos/25.js +11 -7
  18. data/vendor/assets/javascripts/webshims/shims/combos/26.js +11 -7
  19. data/vendor/assets/javascripts/webshims/shims/combos/28.js +10 -1
  20. data/vendor/assets/javascripts/webshims/shims/combos/3.js +11 -7
  21. data/vendor/assets/javascripts/webshims/shims/combos/30.js +18 -8
  22. data/vendor/assets/javascripts/webshims/shims/combos/31.js +18 -8
  23. data/vendor/assets/javascripts/webshims/shims/combos/32.js +7 -1
  24. data/vendor/assets/javascripts/webshims/shims/combos/33.js +7 -1
  25. data/vendor/assets/javascripts/webshims/shims/combos/4.js +11 -7
  26. data/vendor/assets/javascripts/webshims/shims/combos/5.js +237 -84
  27. data/vendor/assets/javascripts/webshims/shims/combos/6.js +244 -85
  28. data/vendor/assets/javascripts/webshims/shims/combos/7.js +18 -8
  29. data/vendor/assets/javascripts/webshims/shims/combos/8.js +11 -7
  30. data/vendor/assets/javascripts/webshims/shims/combos/9.js +255 -92
  31. data/vendor/assets/javascripts/webshims/shims/details.js +1 -1
  32. data/vendor/assets/javascripts/webshims/shims/dom-extend.js +10 -7
  33. data/vendor/assets/javascripts/webshims/shims/form-datalist-lazy.js +53 -56
  34. data/vendor/assets/javascripts/webshims/shims/form-datalist.js +7 -1
  35. data/vendor/assets/javascripts/webshims/shims/form-number-date-ui.js +175 -60
  36. data/vendor/assets/javascripts/webshims/shims/form-shim-extend.js +3 -0
  37. data/vendor/assets/javascripts/webshims/shims/form-shim-extend2.js +6 -6
  38. data/vendor/assets/javascripts/webshims/shims/form-validation.js +77 -28
  39. data/vendor/assets/javascripts/webshims/shims/form-validators.js +24 -16
  40. data/vendor/assets/javascripts/webshims/shims/forms-picker.js +40 -68
  41. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-pl.js +4 -4
  42. data/vendor/assets/javascripts/webshims/shims/i18n/formcfg-sv.js +13 -6
  43. data/vendor/assets/javascripts/webshims/shims/range-ui.js +61 -24
  44. data/vendor/assets/javascripts/webshims/shims/styles/forms-ext.css +278 -95
  45. data/vendor/assets/javascripts/webshims/shims/styles/progress.gif +0 -0
  46. data/vendor/assets/javascripts/webshims/shims/styles/scss/_api-forms-ext.scss +203 -0
  47. data/vendor/assets/javascripts/webshims/shims/styles/scss/_api-shim.scss +115 -0
  48. data/vendor/assets/javascripts/webshims/shims/styles/scss/_extends.scss +18 -2
  49. data/vendor/assets/javascripts/webshims/shims/styles/scss/forms-ext.scss +227 -113
  50. data/vendor/assets/javascripts/webshims/shims/styles/scss/shim.scss +168 -159
  51. data/vendor/assets/javascripts/webshims/shims/styles/shim.css +106 -69
  52. metadata +4 -7
  53. data/vendor/assets/javascripts/webshims/shims/styles/details-arrows.png +0 -0
  54. data/vendor/assets/javascripts/webshims/shims/styles/polyfill-loader.gif +0 -0
  55. data/vendor/assets/javascripts/webshims/shims/styles/range-track.png +0 -0
  56. data/vendor/assets/javascripts/webshims/shims/styles/vertical-range.png +0 -0
  57. data/vendor/assets/javascripts/webshims/shims/swf/localStorage.swf +0 -0
@@ -2506,7 +2506,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2506
2506
  setTimeout(trigger, 0);
2507
2507
  }
2508
2508
 
2509
- }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 0);
2509
+ }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 9);
2510
2510
  };
2511
2511
  })(),
2512
2512
  _create: function(){
@@ -2531,7 +2531,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2531
2531
  setInterval(this.test, 600);
2532
2532
  $(this.test);
2533
2533
  webshims.ready('WINDOWLOAD', this.test);
2534
- $(document).on('updatelayout pageinit collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
2534
+ $(document).on('updatelayout.webshim pageinit popupafteropen panelbeforeopen tabsactivate collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
2535
2535
  $(window).on('resize', this.handler);
2536
2536
  (function(){
2537
2537
  var oldAnimate = $.fn.animate;
@@ -2978,10 +2978,10 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2978
2978
  });
2979
2979
 
2980
2980
  webshims.isReady('webshimLocalization', true);
2981
- });
2982
- //html5a11y
2983
- (function($, document){
2984
- if(!$.webshims.assumeARIA || ('content' in document.createElement('template'))){return;}
2981
+
2982
+ //html5a11y + hidden attribute
2983
+ (function(){
2984
+ if(('content' in document.createElement('template'))){return;}
2985
2985
 
2986
2986
  $(function(){
2987
2987
  var main = $('main').attr({role: 'main'});
@@ -2996,6 +2996,8 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2996
2996
  return;
2997
2997
  }
2998
2998
 
2999
+ webshims.defineNodeNamesBooleanProperty(['*'], 'hidden');
3000
+
2999
3001
  var elemMappings = {
3000
3002
  article: "article",
3001
3003
  aside: "complementary",
@@ -3036,7 +3038,9 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
3036
3038
  }
3037
3039
  });
3038
3040
 
3039
- })(webshims.$, document);;(function(Modernizr, webshims){
3041
+ })();
3042
+ });
3043
+ ;(function(Modernizr, webshims){
3040
3044
  "use strict";
3041
3045
  var $ = webshims.$;
3042
3046
  var hasNative = Modernizr.audio && Modernizr.video;
@@ -1060,7 +1060,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1060
1060
  setTimeout(trigger, 0);
1061
1061
  }
1062
1062
 
1063
- }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 0);
1063
+ }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 9);
1064
1064
  };
1065
1065
  })(),
1066
1066
  _create: function(){
@@ -1085,7 +1085,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1085
1085
  setInterval(this.test, 600);
1086
1086
  $(this.test);
1087
1087
  webshims.ready('WINDOWLOAD', this.test);
1088
- $(document).on('updatelayout pageinit collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
1088
+ $(document).on('updatelayout.webshim pageinit popupafteropen panelbeforeopen tabsactivate collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
1089
1089
  $(window).on('resize', this.handler);
1090
1090
  (function(){
1091
1091
  var oldAnimate = $.fn.animate;
@@ -1532,10 +1532,10 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1532
1532
  });
1533
1533
 
1534
1534
  webshims.isReady('webshimLocalization', true);
1535
- });
1536
- //html5a11y
1537
- (function($, document){
1538
- if(!$.webshims.assumeARIA || ('content' in document.createElement('template'))){return;}
1535
+
1536
+ //html5a11y + hidden attribute
1537
+ (function(){
1538
+ if(('content' in document.createElement('template'))){return;}
1539
1539
 
1540
1540
  $(function(){
1541
1541
  var main = $('main').attr({role: 'main'});
@@ -1550,6 +1550,8 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1550
1550
  return;
1551
1551
  }
1552
1552
 
1553
+ webshims.defineNodeNamesBooleanProperty(['*'], 'hidden');
1554
+
1553
1555
  var elemMappings = {
1554
1556
  article: "article",
1555
1557
  aside: "complementary",
@@ -1590,7 +1592,9 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1590
1592
  }
1591
1593
  });
1592
1594
 
1593
- })(webshims.$, document);;
1595
+ })();
1596
+ });
1597
+ ;
1594
1598
  webshims.register('form-core', function($, webshims, window, document, undefined, options){
1595
1599
  "use strict";
1596
1600
 
@@ -2085,7 +2089,13 @@ webshims.register('form-core', function($, webshims, window, document, undefined
2085
2089
  lazyLoad('WINDOWLOAD');
2086
2090
 
2087
2091
  if(webshims.isReady('form-datalist-lazy')){
2088
- this._lazyCreate(opts);
2092
+ if(window.QUnit){
2093
+ that._lazyCreate(opts);
2094
+ } else {
2095
+ setTimeout(function(){
2096
+ that._lazyCreate(opts);
2097
+ }, 9);
2098
+ }
2089
2099
  } else {
2090
2100
  $(opts.input).one('focus', lazyLoad);
2091
2101
  webshims.ready('form-datalist-lazy', function(){
@@ -2055,7 +2055,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2055
2055
  setTimeout(trigger, 0);
2056
2056
  }
2057
2057
 
2058
- }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 0);
2058
+ }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 9);
2059
2059
  };
2060
2060
  })(),
2061
2061
  _create: function(){
@@ -2080,7 +2080,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2080
2080
  setInterval(this.test, 600);
2081
2081
  $(this.test);
2082
2082
  webshims.ready('WINDOWLOAD', this.test);
2083
- $(document).on('updatelayout pageinit collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
2083
+ $(document).on('updatelayout.webshim pageinit popupafteropen panelbeforeopen tabsactivate collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
2084
2084
  $(window).on('resize', this.handler);
2085
2085
  (function(){
2086
2086
  var oldAnimate = $.fn.animate;
@@ -2527,10 +2527,10 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2527
2527
  });
2528
2528
 
2529
2529
  webshims.isReady('webshimLocalization', true);
2530
- });
2531
- //html5a11y
2532
- (function($, document){
2533
- if(!$.webshims.assumeARIA || ('content' in document.createElement('template'))){return;}
2530
+
2531
+ //html5a11y + hidden attribute
2532
+ (function(){
2533
+ if(('content' in document.createElement('template'))){return;}
2534
2534
 
2535
2535
  $(function(){
2536
2536
  var main = $('main').attr({role: 'main'});
@@ -2545,6 +2545,8 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2545
2545
  return;
2546
2546
  }
2547
2547
 
2548
+ webshims.defineNodeNamesBooleanProperty(['*'], 'hidden');
2549
+
2548
2550
  var elemMappings = {
2549
2551
  article: "article",
2550
2552
  aside: "complementary",
@@ -2585,7 +2587,9 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2585
2587
  }
2586
2588
  });
2587
2589
 
2588
- })(webshims.$, document);;(function(Modernizr, webshims){
2590
+ })();
2591
+ });
2592
+ ;(function(Modernizr, webshims){
2589
2593
  "use strict";
2590
2594
  var $ = webshims.$;
2591
2595
  var hasNative = Modernizr.audio && Modernizr.video;
@@ -185,7 +185,7 @@
185
185
  return details;
186
186
  }
187
187
  };
188
-
188
+
189
189
  var bindDetailsSummary = function(summary, details){
190
190
  summary = $(summary);
191
191
  details = $(details);
@@ -5,7 +5,7 @@ webshims.register('details', function($, webshims, window, doc, undefined, optio
5
5
  return details;
6
6
  }
7
7
  };
8
-
8
+
9
9
  var bindDetailsSummary = function(summary, details){
10
10
  summary = $(summary);
11
11
  details = $(details);
@@ -222,6 +222,9 @@ $.event.special.invalid = {
222
222
  var notValid = !($(e.target).callProp('reportValidity'));
223
223
  if(notValid){
224
224
  e.stopImmediatePropagation();
225
+ if(!options.noFormInvalid){
226
+ $(e.target).trigger('invalid');
227
+ }
225
228
  return false;
226
229
  }
227
230
  }
@@ -1275,10 +1278,7 @@ if(!Modernizr.formattribute || !Modernizr.fieldsetdisabled || !Modernizr.fieldse
1275
1278
  var nan = parseInt('NaN', 10);
1276
1279
 
1277
1280
  var updateProgress = function(progress){
1278
- var position;
1279
-
1280
-
1281
- position = $.prop(progress, 'position');
1281
+ var position = $.prop(progress, 'position');
1282
1282
 
1283
1283
  $.attr(progress, 'data-position', position);
1284
1284
  $('> span', progress).css({width: (position < 0 ? 100 : position * 100) +'%'});
@@ -1302,8 +1302,9 @@ if(!Modernizr.formattribute || !Modernizr.fieldsetdisabled || !Modernizr.fieldse
1302
1302
  $.attr(this, 'aria-valuemax', max);
1303
1303
  }
1304
1304
  }
1305
+ $(this).removeClass('ws-indeterminate');
1305
1306
  } else if(updateProgress.isInChange) {
1306
- $(this).removeAttr('aria-valuenow');
1307
+ $(this).removeAttr('aria-valuenow').addClass('ws-indeterminate');
1307
1308
  }
1308
1309
  return ret;
1309
1310
  },
@@ -1378,7 +1379,9 @@ if(!Modernizr.formattribute || !Modernizr.fieldsetdisabled || !Modernizr.fieldse
1378
1379
  } else {
1379
1380
  webshims.info("you should use label elements for your prgogress elements");
1380
1381
  }
1381
-
1382
+ if($(this).css('direction') == 'rtl'){
1383
+ $(this).addClass('ws-is-rtl');
1384
+ }
1382
1385
  updateProgress.isInChange = 'max';
1383
1386
  updateProgress(this);
1384
1387
  updateProgress.isInChange = false;
@@ -2506,7 +2506,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2506
2506
  setTimeout(trigger, 0);
2507
2507
  }
2508
2508
 
2509
- }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 0);
2509
+ }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 9);
2510
2510
  };
2511
2511
  })(),
2512
2512
  _create: function(){
@@ -2531,7 +2531,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2531
2531
  setInterval(this.test, 600);
2532
2532
  $(this.test);
2533
2533
  webshims.ready('WINDOWLOAD', this.test);
2534
- $(document).on('updatelayout pageinit collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
2534
+ $(document).on('updatelayout.webshim pageinit popupafteropen panelbeforeopen tabsactivate collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
2535
2535
  $(window).on('resize', this.handler);
2536
2536
  (function(){
2537
2537
  var oldAnimate = $.fn.animate;
@@ -2978,10 +2978,10 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2978
2978
  });
2979
2979
 
2980
2980
  webshims.isReady('webshimLocalization', true);
2981
- });
2982
- //html5a11y
2983
- (function($, document){
2984
- if(!$.webshims.assumeARIA || ('content' in document.createElement('template'))){return;}
2981
+
2982
+ //html5a11y + hidden attribute
2983
+ (function(){
2984
+ if(('content' in document.createElement('template'))){return;}
2985
2985
 
2986
2986
  $(function(){
2987
2987
  var main = $('main').attr({role: 'main'});
@@ -2996,6 +2996,8 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
2996
2996
  return;
2997
2997
  }
2998
2998
 
2999
+ webshims.defineNodeNamesBooleanProperty(['*'], 'hidden');
3000
+
2999
3001
  var elemMappings = {
3000
3002
  article: "article",
3001
3003
  aside: "complementary",
@@ -3036,7 +3038,9 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
3036
3038
  }
3037
3039
  });
3038
3040
 
3039
- })(webshims.$, document);;webshims.register('filereader', function( $, webshims ){
3041
+ })();
3042
+ });
3043
+ ;webshims.register('filereader', function( $, webshims ){
3040
3044
  "use strict";
3041
3045
  /**
3042
3046
  * Code is based on https://github.com/Jahdrien/FileReader
@@ -609,7 +609,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
609
609
  setTimeout(trigger, 0);
610
610
  }
611
611
 
612
- }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 0);
612
+ }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 9);
613
613
  };
614
614
  })(),
615
615
  _create: function(){
@@ -634,7 +634,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
634
634
  setInterval(this.test, 600);
635
635
  $(this.test);
636
636
  webshims.ready('WINDOWLOAD', this.test);
637
- $(document).on('updatelayout pageinit collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
637
+ $(document).on('updatelayout.webshim pageinit popupafteropen panelbeforeopen tabsactivate collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
638
638
  $(window).on('resize', this.handler);
639
639
  (function(){
640
640
  var oldAnimate = $.fn.animate;
@@ -1081,10 +1081,10 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1081
1081
  });
1082
1082
 
1083
1083
  webshims.isReady('webshimLocalization', true);
1084
- });
1085
- //html5a11y
1086
- (function($, document){
1087
- if(!$.webshims.assumeARIA || ('content' in document.createElement('template'))){return;}
1084
+
1085
+ //html5a11y + hidden attribute
1086
+ (function(){
1087
+ if(('content' in document.createElement('template'))){return;}
1088
1088
 
1089
1089
  $(function(){
1090
1090
  var main = $('main').attr({role: 'main'});
@@ -1099,6 +1099,8 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1099
1099
  return;
1100
1100
  }
1101
1101
 
1102
+ webshims.defineNodeNamesBooleanProperty(['*'], 'hidden');
1103
+
1102
1104
  var elemMappings = {
1103
1105
  article: "article",
1104
1106
  aside: "complementary",
@@ -1139,7 +1141,9 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1139
1141
  }
1140
1142
  });
1141
1143
 
1142
- })(webshims.$, document);;webshims.register('filereader', function( $, webshims ){
1144
+ })();
1145
+ });
1146
+ ;webshims.register('filereader', function( $, webshims ){
1143
1147
  "use strict";
1144
1148
  /**
1145
1149
  * Code is based on https://github.com/Jahdrien/FileReader
@@ -222,6 +222,9 @@ $.event.special.invalid = {
222
222
  var notValid = !($(e.target).callProp('reportValidity'));
223
223
  if(notValid){
224
224
  e.stopImmediatePropagation();
225
+ if(!options.noFormInvalid){
226
+ $(e.target).trigger('invalid');
227
+ }
225
228
  return false;
226
229
  }
227
230
  }
@@ -1862,7 +1865,13 @@ webshims.defineNodeNamesProperties(['input', 'button'], formSubmitterDescriptors
1862
1865
  lazyLoad('WINDOWLOAD');
1863
1866
 
1864
1867
  if(webshims.isReady('form-datalist-lazy')){
1865
- this._lazyCreate(opts);
1868
+ if(window.QUnit){
1869
+ that._lazyCreate(opts);
1870
+ } else {
1871
+ setTimeout(function(){
1872
+ that._lazyCreate(opts);
1873
+ }, 9);
1874
+ }
1866
1875
  } else {
1867
1876
  $(opts.input).one('focus', lazyLoad);
1868
1877
  webshims.ready('form-datalist-lazy', function(){
@@ -609,7 +609,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
609
609
  setTimeout(trigger, 0);
610
610
  }
611
611
 
612
- }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 0);
612
+ }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 9);
613
613
  };
614
614
  })(),
615
615
  _create: function(){
@@ -634,7 +634,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
634
634
  setInterval(this.test, 600);
635
635
  $(this.test);
636
636
  webshims.ready('WINDOWLOAD', this.test);
637
- $(document).on('updatelayout pageinit collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
637
+ $(document).on('updatelayout.webshim pageinit popupafteropen panelbeforeopen tabsactivate collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
638
638
  $(window).on('resize', this.handler);
639
639
  (function(){
640
640
  var oldAnimate = $.fn.animate;
@@ -1081,10 +1081,10 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1081
1081
  });
1082
1082
 
1083
1083
  webshims.isReady('webshimLocalization', true);
1084
- });
1085
- //html5a11y
1086
- (function($, document){
1087
- if(!$.webshims.assumeARIA || ('content' in document.createElement('template'))){return;}
1084
+
1085
+ //html5a11y + hidden attribute
1086
+ (function(){
1087
+ if(('content' in document.createElement('template'))){return;}
1088
1088
 
1089
1089
  $(function(){
1090
1090
  var main = $('main').attr({role: 'main'});
@@ -1099,6 +1099,8 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1099
1099
  return;
1100
1100
  }
1101
1101
 
1102
+ webshims.defineNodeNamesBooleanProperty(['*'], 'hidden');
1103
+
1102
1104
  var elemMappings = {
1103
1105
  article: "article",
1104
1106
  aside: "complementary",
@@ -1139,7 +1141,9 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1139
1141
  }
1140
1142
  });
1141
1143
 
1142
- })(webshims.$, document);;
1144
+ })();
1145
+ });
1146
+ ;
1143
1147
  webshims.register('form-core', function($, webshims, window, document, undefined, options){
1144
1148
  "use strict";
1145
1149
 
@@ -609,7 +609,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
609
609
  setTimeout(trigger, 0);
610
610
  }
611
611
 
612
- }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 0);
612
+ }, (e.type == 'resize' && !window.requestAnimationFrame) ? 50 : 9);
613
613
  };
614
614
  })(),
615
615
  _create: function(){
@@ -634,7 +634,7 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
634
634
  setInterval(this.test, 600);
635
635
  $(this.test);
636
636
  webshims.ready('WINDOWLOAD', this.test);
637
- $(document).on('updatelayout pageinit collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
637
+ $(document).on('updatelayout.webshim pageinit popupafteropen panelbeforeopen tabsactivate collapsibleexpand shown.bs.modal shown.bs.collapse slid.bs.carousel', this.handler);
638
638
  $(window).on('resize', this.handler);
639
639
  (function(){
640
640
  var oldAnimate = $.fn.animate;
@@ -1081,10 +1081,10 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1081
1081
  });
1082
1082
 
1083
1083
  webshims.isReady('webshimLocalization', true);
1084
- });
1085
- //html5a11y
1086
- (function($, document){
1087
- if(!$.webshims.assumeARIA || ('content' in document.createElement('template'))){return;}
1084
+
1085
+ //html5a11y + hidden attribute
1086
+ (function(){
1087
+ if(('content' in document.createElement('template'))){return;}
1088
1088
 
1089
1089
  $(function(){
1090
1090
  var main = $('main').attr({role: 'main'});
@@ -1099,6 +1099,8 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1099
1099
  return;
1100
1100
  }
1101
1101
 
1102
+ webshims.defineNodeNamesBooleanProperty(['*'], 'hidden');
1103
+
1102
1104
  var elemMappings = {
1103
1105
  article: "article",
1104
1106
  aside: "complementary",
@@ -1139,7 +1141,9 @@ webshims.register('dom-extend', function($, webshims, window, document, undefine
1139
1141
  }
1140
1142
  });
1141
1143
 
1142
- })(webshims.$, document);;
1144
+ })();
1145
+ });
1146
+ ;
1143
1147
  webshims.register('form-core', function($, webshims, window, document, undefined, options){
1144
1148
  "use strict";
1145
1149
 
@@ -1858,7 +1862,13 @@ webshims.register('form-core', function($, webshims, window, document, undefined
1858
1862
  lazyLoad('WINDOWLOAD');
1859
1863
 
1860
1864
  if(webshims.isReady('form-datalist-lazy')){
1861
- this._lazyCreate(opts);
1865
+ if(window.QUnit){
1866
+ that._lazyCreate(opts);
1867
+ } else {
1868
+ setTimeout(function(){
1869
+ that._lazyCreate(opts);
1870
+ }, 9);
1871
+ }
1862
1872
  } else {
1863
1873
  $(opts.input).one('focus', lazyLoad);
1864
1874
  webshims.ready('form-datalist-lazy', function(){