[MediaWiki-commits] [Gerrit] mediawiki...DeepSea[master]: Remove backwards compatibility stuff meant to support ancien...
Jack Phoenix has submitted this change and it was merged. Change subject: Remove backwards compatibility stuff meant to support ancient IEs .. Remove backwards compatibility stuff meant to support ancient IEs Bug: T146247 Change-Id: Id1c4f66b434f1530f459b2838c50aeab8380fbb6 --- M DeepSea.skin.php D deepsea/csshover.htc D deepsea/csshover.min.htc 3 files changed, 0 insertions(+), 305 deletions(-) Approvals: Jack Phoenix: Verified; Looks good to me, approved diff --git a/DeepSea.skin.php b/DeepSea.skin.php index 49a2288..6a12b27 100644 --- a/DeepSea.skin.php +++ b/DeepSea.skin.php @@ -18,15 +18,6 @@ parent::initPage( $out ); - // Append CSS which includes IE only behavior fixes for hover support - - // this is better than including this in a CSS fille since it doesn't - // wait for the CSS file to load before fetching the HTC file. - $min = $this->getRequest()->getFuzzyBool( 'debug' ) ? '' : '.min'; - $out->addHeadItem( 'csshover', - '" - ); $out->addMeta( 'viewport', 'width=device-width' ); // Load JS diff --git a/deepsea/csshover.htc b/deepsea/csshover.htc deleted file mode 100644 index a13ea68..000 --- a/deepsea/csshover.htc +++ /dev/null @@ -1,284 +0,0 @@ - - -/** - * Whatever:hover - V3.11 - * - * Author - Peter Nederlof, http://www.xs4all.nl/~peterned - * License - http://creativecommons.org/licenses/LGPL/2.1 - * - * Special thanks to Sergiu Dumitriu, http://purl.org/net/sergiu, - * for fixing the expression loop. - * - * Whatever:hover is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * Whatever:hover is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * howto: body { behavior:url("csshover3.htc"); } - * - */ - -window.CSSHover = (function(){ - - // regular expressions, used and explained later on. - var REG_INTERACTIVE = /(^|\s)((([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active|focus))/i; - var REG_AFFECTED = /(.*?)\:(hover|active|focus)/i; - var REG_PSEUDO = /[^:]+:([a-z\-]+).*/i; - var REG_SELECT = /(\.([a-z0-9_\-]+):[a-z]+)|(:[a-z]+)/gi; - var REG_CLASS = /\.([a-z0-9_\-]*on(hover|active|focus))/i; - var REG_MSIE = /msie (5|6|7)/i; - var REG_COMPAT = /backcompat/i; - - // property mapping, real css properties must be used in order to clear expressions later on... - // Uses obscure css properties that no-one is likely to use. The properties are borrowed to - // set an expression, and are then restored to the most likely correct value. - var Properties = { - index: 0, - list: ['text-kashida', 'text-kashida-space', 'text-justify'], - get: function() { - return this.list[(this.index++)%this.list.length]; - } - }; - - // camelize is used to convert css properties from (eg) text-kashida to textKashida - var camelize = function(str) { - return str.replace(/-(.)/mg, function(result, match){ - return match.toUpperCase(); - }); - }; - - /** -* Local CSSHover object -* -- -*/ - - var CSSHover = { - - // array of CSSHoverElements, used to unload created events - elements: [], - - // buffer used for checking on duplicate expressions - callbacks: {}, - - // init, called once ondomcontentready via the exposed window.CSSHover function - init:function() { - // don't run in IE8 standards; expressions don't work in standards mode anyway, - // and the stuff we're trying to fix should already work properly - if(!REG_MSIE.test(navigator.userAgent) && !REG_COMPAT.test(window.document.compatMode)) { - return; - } - - // start parsing the exist
[MediaWiki-commits] [Gerrit] mediawiki...DeepSea[master]: Remove backwards compatibility stuff meant to support ancien...
Jack Phoenix has uploaded a new change for review. https://gerrit.wikimedia.org/r/311987 Change subject: Remove backwards compatibility stuff meant to support ancient IEs .. Remove backwards compatibility stuff meant to support ancient IEs Bug: T146247 Change-Id: Id1c4f66b434f1530f459b2838c50aeab8380fbb6 --- M DeepSea.skin.php D deepsea/csshover.htc D deepsea/csshover.min.htc 3 files changed, 0 insertions(+), 305 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/DeepSea refs/changes/87/311987/1 diff --git a/DeepSea.skin.php b/DeepSea.skin.php index 49a2288..6a12b27 100644 --- a/DeepSea.skin.php +++ b/DeepSea.skin.php @@ -18,15 +18,6 @@ parent::initPage( $out ); - // Append CSS which includes IE only behavior fixes for hover support - - // this is better than including this in a CSS fille since it doesn't - // wait for the CSS file to load before fetching the HTC file. - $min = $this->getRequest()->getFuzzyBool( 'debug' ) ? '' : '.min'; - $out->addHeadItem( 'csshover', - '" - ); $out->addMeta( 'viewport', 'width=device-width' ); // Load JS diff --git a/deepsea/csshover.htc b/deepsea/csshover.htc deleted file mode 100644 index a13ea68..000 --- a/deepsea/csshover.htc +++ /dev/null @@ -1,284 +0,0 @@ - - -/** - * Whatever:hover - V3.11 - * - * Author - Peter Nederlof, http://www.xs4all.nl/~peterned - * License - http://creativecommons.org/licenses/LGPL/2.1 - * - * Special thanks to Sergiu Dumitriu, http://purl.org/net/sergiu, - * for fixing the expression loop. - * - * Whatever:hover is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * Whatever:hover is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * howto: body { behavior:url("csshover3.htc"); } - * - */ - -window.CSSHover = (function(){ - - // regular expressions, used and explained later on. - var REG_INTERACTIVE = /(^|\s)((([^a]([^ ]+)?)|(a([^#.][^ ]+)+)):(hover|active|focus))/i; - var REG_AFFECTED = /(.*?)\:(hover|active|focus)/i; - var REG_PSEUDO = /[^:]+:([a-z\-]+).*/i; - var REG_SELECT = /(\.([a-z0-9_\-]+):[a-z]+)|(:[a-z]+)/gi; - var REG_CLASS = /\.([a-z0-9_\-]*on(hover|active|focus))/i; - var REG_MSIE = /msie (5|6|7)/i; - var REG_COMPAT = /backcompat/i; - - // property mapping, real css properties must be used in order to clear expressions later on... - // Uses obscure css properties that no-one is likely to use. The properties are borrowed to - // set an expression, and are then restored to the most likely correct value. - var Properties = { - index: 0, - list: ['text-kashida', 'text-kashida-space', 'text-justify'], - get: function() { - return this.list[(this.index++)%this.list.length]; - } - }; - - // camelize is used to convert css properties from (eg) text-kashida to textKashida - var camelize = function(str) { - return str.replace(/-(.)/mg, function(result, match){ - return match.toUpperCase(); - }); - }; - - /** -* Local CSSHover object -* -- -*/ - - var CSSHover = { - - // array of CSSHoverElements, used to unload created events - elements: [], - - // buffer used for checking on duplicate expressions - callbacks: {}, - - // init, called once ondomcontentready via the exposed window.CSSHover function - init:function() { - // don't run in IE8 standards; expressions don't work in standards mode anyway, - // and the stuff we're trying to fix should already work properly - if(!REG_MSIE.test(navigator.userAgent) && !REG_COMPAT.test(window.document.compatMode)) { - return; -