- From ve.ce.Surface.prototype.onDocumentMouseDown
// HACK: do not do triple click handling in IE, because their click counting is broken if ( e.originalEvent.detail >= 3 && !ve.init.platform.constructor.static.isInternetExplorer() ) {
We also add the CSS class 've-init-target-ie' to the target which triggers the following:
- ve.ce.LanguageAnnotation.css, added in https://gerrit.wikimedia.org/r/#/c/155810
/* Don't apply a background color to language annotations, otherwise the text disappears if the span has dir="rtl" */ .ve-init-target-ie .ve-ce-languageAnnotation { background: none; }
- ve.ce.FocusableNode.css, added in https://gerrit.wikimedia.org/r/#/c/144104, the same hack occurs in ve.ce.Surface.css and ve.ui.FindAndReplaceDialog.css
/* Set opacity directly on the highlights, rather than their containers, otherwise the opacity isn't applied at all */ .ve-init-target-ie .ve-ce-surface-highlights-focused .ve-ce-focusableNode-highlight { opacity: 0.5; } .ve-init-target-ie .ve-ce-surface-highlights-blurred .ve-ce-focusableNode-highlight { opacity: 0.15; }
- in ve.ce.Surface.css, added in https://gerrit.wikimedia.org/r/#/c/200486/
/* Prevent IE from wrapping link text in <u> and <font color> tags */ .ve-init-target-ie .ve-ce-surface-paste a { text-decoration: underline !important; color: #0066cc; }
- In MW, ve.ce.MWReferenceNode.css, added in https://gerrit.wikimedia.org/r/144104
/* In IE, force hasLayout so the <sup>'s box gets measured correctly */ .ve-init-target-ie .ve-ce-mwReferenceNode { display: inline-block; }
- ve.init.mw.Target.css, added in https://gerrit.wikimedia.org/r/144104
/* Undo overflow: hidden; from MW CSS to work around hasLayout issue */ .ve-init-target-ie .ve-ce-surface h1, .ve-init-target-ie .ve-ce-surface h2, .ve-init-target-ie .ve-ce-surface h3, .ve-init-target-ie .ve-ce-surface h4, .ve-init-target-ie .ve-ce-surface h5, .ve-init-target-ie .ve-ce-surface h6 { overflow: visible; }