Skip to content

Commit b34cbe1

Browse files
feat(client): remove Internet Explorer (IE11) support
BREAKING CHANGE: remove Internet Explorer (IE11) support Internet Explorer has been retired on 2022-06-15 Closes remarkablemark#225
1 parent c69dce5 commit b34cbe1

File tree

3 files changed

+2
-25
lines changed

3 files changed

+2
-25
lines changed

lib/client/domparser.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,7 @@ if (typeof window.DOMParser === 'function') {
5252
* @see https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument
5353
*/
5454
if (document.implementation) {
55-
var isIE = require('./utilities').isIE;
56-
57-
// title parameter is required in IE
58-
// https://msdn.microsoft.com/en-us/library/ff975457(v=vs.85).aspx
59-
var doc = document.implementation.createHTMLDocument(
60-
isIE() ? 'html-dom-parser' : undefined
61-
);
55+
var doc = document.implementation.createHTMLDocument();
6256

6357
/**
6458
* Use HTML document created by `document.implementation.createHTMLDocument`.

lib/client/utilities.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,3 @@ export function formatDOM(
2525
parent?: Element | null,
2626
directive?: string
2727
): Array<Comment | Element | ProcessingInstruction | Text>;
28-
29-
/**
30-
* Detects if browser is Internet Explorer.
31-
*
32-
* @return - Whether IE is detected.
33-
*/
34-
export function isIE(): boolean;

lib/client/utilities.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,7 @@ function formatDOM(nodes, parent, directive) {
129129
return result;
130130
}
131131

132-
/**
133-
* Detects if browser is Internet Explorer.
134-
*
135-
* @return {boolean} - Whether IE is detected.
136-
*/
137-
function isIE() {
138-
return /(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent);
139-
}
140-
141132
module.exports = {
142133
formatAttributes: formatAttributes,
143-
formatDOM: formatDOM,
144-
isIE: isIE
134+
formatDOM: formatDOM
145135
};

0 commit comments

Comments
 (0)