diff --git a/prive/javascript/jquery.js b/prive/javascript/jquery.js index d888910a863d8bec4c23831f276fa257e3198242..61f168b270c8b20fd4cc2cc05ce4429bf28cfefb 100644 --- a/prive/javascript/jquery.js +++ b/prive/javascript/jquery.js @@ -1,5 +1,5 @@ /*! - * jQuery JavaScript Library v1.12.1 + * jQuery JavaScript Library v1.12.2 * http://jquery.com/ * * Includes Sizzle.js @@ -9,7 +9,7 @@ * Released under the MIT license * http://jquery.org/license * - * Date: 2016-02-22T19:07Z + * Date: 2016-03-17T17:44Z */ (function( global, factory ) { @@ -65,7 +65,7 @@ var support = {}; var - version = "1.12.1", + version = "1.12.2", // Define a local copy of jQuery jQuery = function( selector, context ) { @@ -8198,7 +8198,8 @@ jQuery.fn.delay = function( time, type ) { } )(); -var rreturn = /\r/g; +var rreturn = /\r/g, + rspaces = /[\x20\t\r\n\f]+/g; jQuery.fn.extend( { val: function( value ) { @@ -8278,7 +8279,9 @@ jQuery.extend( { // Support: IE10-11+ // option.text throws exceptions (#14686, #14858) - jQuery.trim( jQuery.text( elem ) ); + // Strip and collapse whitespace + // https://html.spec.whatwg.org/#strip-and-collapse-whitespace + jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " ); } }, select: { @@ -8332,7 +8335,7 @@ jQuery.extend( { while ( i-- ) { option = options[ i ]; - if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) >= 0 ) { + if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 ) { // Support: IE6 // When new option element is added to select box we need to @@ -8751,8 +8754,11 @@ if ( !support.hrefNormalized ) { } // Support: Safari, IE9+ -// mis-reports the default selected property of an option -// Accessing the parent's selectedIndex property fixes it +// Accessing the selectedIndex property +// forces the browser to respect setting selected +// on the option +// The getter ensures a default option is selected +// when in an optgroup if ( !support.optSelected ) { jQuery.propHooks.selected = { get: function( elem ) { @@ -8767,6 +8773,16 @@ if ( !support.optSelected ) { } } return null; + }, + set: function( elem ) { + var parent = elem.parentNode; + if ( parent ) { + parent.selectedIndex; + + if ( parent.parentNode ) { + parent.parentNode.selectedIndex; + } + } } }; } @@ -10542,21 +10558,6 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { -// Support: Safari 8+ -// In Safari 8 documents created via document.implementation.createHTMLDocument -// collapse sibling forms: the second one becomes a child of the first one. -// Because of that, this security measure has to be disabled in Safari 8. -// https://bugs.webkit.org/show_bug.cgi?id=137337 -support.createHTMLDocument = ( function() { - if ( !document.implementation.createHTMLDocument ) { - return false; - } - var doc = document.implementation.createHTMLDocument( "" ); - doc.body.innerHTML = "<form></form><form></form>"; - return doc.body.childNodes.length === 2; -} )(); - - // data: string of html // context (optional): If specified, the fragment will be created in this context, // defaults to document @@ -10569,12 +10570,7 @@ jQuery.parseHTML = function( data, context, keepScripts ) { keepScripts = context; context = false; } - - // document.implementation stops scripts or inline event handlers from - // being executed immediately - context = context || ( support.createHTMLDocument ? - document.implementation.createHTMLDocument( "" ) : - document ); + context = context || document; var parsed = rsingleTag.exec( data ), scripts = !keepScripts && [];