webshims.register('form-shim-extend', function($, webshims, window, document, undefined, options){ "use strict"; webshims.inputTypes = webshims.inputTypes || {}; //some helper-functions var cfg = webshims.cfg.forms; var bugs = webshims.bugs; var splitReg = /\s*,\s*/g; var typeModels = webshims.inputTypes, checkTypes = { radio: 1, checkbox: 1 }, getType = function(){ var elem = this; var type = (elem.getAttribute('type') || '').toLowerCase(); return (webshims.inputTypes[type]) ? type : elem.type; }, cacheType = function(cache, input){ if(!('type' in cache)){ cache.type = getType.call(input); } } ; (function(){ if('querySelector' in document){ try { bugs.findRequired = !($('