Skip to content

Commit b62ebaf

Browse files
jesdaiglezcorpan
andauthored
Merge pull request #2062 from jesdaigle/remove-IE-support
* remove IE references * Remove try/catch for constructible events * Remove unneeded reference to Firefox Co-authored-by: Simon Pieters <[email protected]>
1 parent c9ecd4a commit b62ebaf

File tree

4 files changed

+9
-18
lines changed

4 files changed

+9
-18
lines changed

aria-practices-DeletedSectionsArchive.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ <h4>Keyboard Interaction</h4>
739739
<ul>
740740
<li>Posts the Popup Help widget. </li>
741741
<li>Input focus is placed on the first interactive element in the Popup Help. </li>
742-
<li class="note">Control F1 is used by IE to "Display a help dialog box". In IE7 and IE8 <code>event.cancelBubble=true;</code> and <code>event.returnValue=false;</code> will allow the re-purposing of keys used by the browser. In the case of IE6, you can not stop the bubble up of keys used by the browser, but can stop the bubble up to the OS. In the case of Firefox and other standard compliant browsers, <code>event.stopPropagation();</code> and <code>event.preventDefault();</code> will re-purpose the keys. </li>
742+
<li class="note"><code>event.stopPropagation();</code> and <code>event.preventDefault();</code> will re-purpose the keys. </li>
743743
<li class="note">With the exception of Control F1 to bring up Popup Help this widget is very similar to <a href="#dialog_modal">Dialog (Modal)</a> and/or <a href="#dialog_nonmodal">Dialog (Non-Modal)</a> and/or <a href="#dialog_tooltip">Dialog (tooltip)</a> described elsewhere in this document. </li>
744744
</ul>
745745
</li>

common/css/slices.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ div.slices_footer {
7676
}
7777
* html .slices_skipnav {
7878
display: block
79-
} /*Switch on for IE6 and below*/
79+
}
8080
*+html .slices_skipnav {
8181
display: block
82-
} /*Switch on for IE7*/
82+
}
8383
:root .slices_skipnav {
8484
display: block
8585
} /*Switch on for Moz, FF and Safari*/
@@ -111,7 +111,7 @@ div.slices_footer {
111111
border: solid #777 2px;
112112
color: #fff;
113113
background: #333 !important
114-
} /*Note IE bug that requires use of :active to mimic effect of :focus*/
114+
}
115115
.slices_skipnav a:hover {
116116
cursor: default
117117
}

examples/treegrid/js/treegrid-1.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ function TreeGrid(treegridElem, doAllowRowFocus, doStartRowFocus) {
77

88
// Add tabindex="0" to first row, "-1" to other rows
99
// We will use the roving tabindex method since aria-activedescendant
10-
// does not work in IE
1110
var rows = getAllRows();
1211
var index = rows.length;
1312
var startRowIndex = doStartRowFocus ? 0 : -1;

examples/treeview/treeview-1/js/treeitem.js

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,11 @@ Treeitem.prototype.handleKeydown = function (event) {
135135
case this.keyCode.RETURN:
136136
// Create simulated mouse event to mimic the behavior of ATs
137137
// and let the event handler handleClick do the housekeeping.
138-
try {
139-
clickEvent = new MouseEvent('click', {
140-
view: window,
141-
bubbles: true,
142-
cancelable: true,
143-
});
144-
} catch (err) {
145-
if (document.createEvent) {
146-
// DOM Level 3 for IE 9+
147-
clickEvent = document.createEvent('MouseEvents');
148-
clickEvent.initEvent('click', true, true);
149-
}
150-
}
138+
clickEvent = new MouseEvent('click', {
139+
view: window,
140+
bubbles: true,
141+
cancelable: true,
142+
});
151143
tgt.dispatchEvent(clickEvent);
152144
flag = true;
153145
break;

0 commit comments

Comments
 (0)