xl-infinite-tree
Version:
A browser-ready tree library that can efficiently display a large amount of data using infinite scrolling.
14 lines (11 loc) • 376 B
JavaScript
// https://gist.github.com/padolsey/527683#comment-786682
export const getIEVersion = () => {
const div = document.createElement('div');
const all = div.getElementsByTagName('i') || [];
let v = 3;
do {
++v;
div.innerHTML = '<!--[if gt IE ' + v + ']><i></i><![endif]-->';
} while (all[0]);
return v > 4 ? v : document.documentMode;
};