@@ -117,10 +117,6 @@ if ( !( (window.faces && window.faces.specversion && window.faces.specversion >=
117117 return inputElementName in form ? form [ inputElementName ] : getElementByName ( form , inputElementName ) ;
118118 }
119119
120- /**
121- * append a new pair of parameter=value to a query string
122- * @ignore
123- */
124120
125121 /**
126122 * return true if one of the dom elements contains
@@ -355,12 +351,13 @@ if ( !( (window.faces && window.faces.specversion && window.faces.specversion >=
355351 } ;
356352
357353 /**
358- * Remove all the portion of code matching the script pattern from the passed string
354+ * Remove all the portion of code matching the script pattern from the passed string,
355+ * preserving scripts whose type is set to something other than text/javascript.
359356 * @param html a String containing a portion of html
360357 * @ignore
361358 */
362359 const removeScripts = function removeScripts ( html ) {
363- return html . replace ( SCRIPT_TAG_REGEX , function ( match , content ) {
360+ return html . replace ( SCRIPT_TAG_REGEX , ( match ) => {
364361 const type = match . match ( TAG_ATTRIBUTE_TYPE_REGEX ) ;
365362 if ( ! ! type && type [ 1 ] !== "text/javascript" ) {
366363 return match ; // keep non-text/javascript scripts
@@ -3228,17 +3225,9 @@ mojarra.l = function l(l) {
32283225 if ( document . readyState === "complete" ) {
32293226 setTimeout ( l ) ;
32303227 }
3231- else if ( window . addEventListener ) {
3232- window . addEventListener ( "load" , l , false ) ;
3233- }
3234- else if ( typeof window . onload === "function" ) {
3235- const oldListener = window . onload ;
3236- window . onload = function ( ) { oldListener ( ) ; l ( ) ; } ;
3237- }
32383228 else {
3239- window . onload = l ;
3229+ window . addEventListener ( "load" , l ) ;
32403230 }
3241-
32423231} ;
32433232
32443233/**
0 commit comments