diff --git a/core/CHANGELOG.txt b/core/CHANGELOG.txt index 0fdb64c..bc54543 100644 --- a/core/CHANGELOG.txt +++ b/core/CHANGELOG.txt @@ -18,7 +18,6 @@ Drupal 8.0, xxxx-xx-xx (development version) * Includes ability to override configuration values with language variants and other runtime values. - Added the CKEditor WYSIWYG editor. Provides a drag-and-drop configuration UI. -- Included the HTML5 Shiv library to support HTML5 elements in IE 8 and below. - Included the following Symfony2 components: * ClassLoader - PSR-0-compatible autoload routines. * DependencyInjection - Flexible dependency injection container. @@ -54,6 +53,7 @@ Drupal 8.0, xxxx-xx-xx (development version) * Updated to jQuery 2.1.0 * Updated to jQuery UI 1.10.2 * Removed jquery.bbq + * Removed html5shiv - Tremendously improved language support all around. * Great language improvements for users: * Improved language selection with user preference detection in the diff --git a/core/COPYRIGHT.txt b/core/COPYRIGHT.txt index 60b799e..9bf7cd1 100644 --- a/core/COPYRIGHT.txt +++ b/core/COPYRIGHT.txt @@ -24,9 +24,6 @@ Javascript Farbtastic - Copyright (c) 2010 Matt Farina - HTML5 Shiv - Copyright (c) 2012 Alexander Farkas, Jonathan Neal, Paul Irish, - and John-David Dalton - jQuery - Copyright (c) 2011 John Resig jQuery Bgiframe - Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) @@ -42,10 +39,10 @@ Javascript jQuery Mousewheel - Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) - jQuery Metadata - Copyright (c) 2006 John Resig, Yehuda Katz, Jörn Zaefferer, + jQuery Metadata - Copyright (c) 2006 John Resig, Yehuda Katz, J�rn Zaefferer, Paul McLanahan - jQuery Once - Copyright (c) 2009 Konstantin Käfer + jQuery Once - Copyright (c) 2009 Konstantin K�fer jQuery UI - Copyright (c) 2012 by the original authors (http://jqueryui.com/about) diff --git a/core/assets/vendor/html5shiv/html5.js b/core/assets/vendor/html5shiv/html5.js deleted file mode 100644 index dcf351c..0000000 --- a/core/assets/vendor/html5shiv/html5.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - HTML5 Shiv v3.6.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed -*/ -(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); -a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; -c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| -"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video",version:"3.6.2",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment(); -for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d 'html', - // HTML5 Shiv - '#attached' => array( - 'library' => array('core/html5shiv'), - ), ); } diff --git a/core/modules/system/src/Tests/Common/NoJavaScriptAnonymousTest.php b/core/modules/system/src/Tests/Common/NoJavaScriptAnonymousTest.php index a143f36..09032c3 100644 --- a/core/modules/system/src/Tests/Common/NoJavaScriptAnonymousTest.php +++ b/core/modules/system/src/Tests/Common/NoJavaScriptAnonymousTest.php @@ -38,33 +38,26 @@ public function testNoJavaScript() { // Test frontpage. $this->drupalGet(''); - $this->assertNoJavaScriptExceptHtml5Shiv(); + $this->assertNoJavaScript(); // Test node page. $this->drupalGet('node/1'); - $this->assertNoJavaScriptExceptHtml5Shiv(); + $this->assertNoJavaScript(); // Test user profile page. $this->drupalGet('user/' . $user->id()); - $this->assertNoJavaScriptExceptHtml5Shiv(); + $this->assertNoJavaScript(); } /** - * Passes if no JavaScript is found on the page except the HTML5 shiv. - * - * The HTML5 shiv is necessary for e.g. the
tag which Drupal 8 uses - * to work in older browsers like Internet Explorer 8. + * Passes if no JavaScript is found on the page. */ - protected function assertNoJavaScriptExceptHtml5Shiv() { + protected function assertNoJavaScript() { // Ensure drupalSettings is not set. $this->assertNoRaw('var drupalSettings = {', 'drupalSettings is not set.'); - // Ensure the HTML5 shiv exists. - $this->assertRaw('html5shiv/html5.js', 'HTML5 shiv JavaScript exists.'); - - // Ensure no other JavaScript file exists on the page, while ignoring the - // HTML5 shiv. - $this->assertNoPattern('/(?assertNoPattern('/\.js/', "No other JavaScript exists."); } }