Skip to content

Commit 3523295

Browse files
Bypass a capability check in newer IEs to avoid a "this page uses Java" dialog.
1 parent e87f4b7 commit 3523295

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/prototype/dom/dom.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3170,6 +3170,9 @@
31703170
// Certain oddball element types can't be extended in IE8.
31713171
function checkElementPrototypeDeficiency(tagName) {
31723172
if (typeof window.Element === 'undefined') return false;
3173+
// Skip newer IEs because creating an OBJECT tag pops up an annoying
3174+
// "this page uses Java" warning.
3175+
if (!HAS_EXTENDED_CREATE_ELEMENT_SYNTAX) return false;
31733176
var proto = window.Element.prototype;
31743177
if (proto) {
31753178
var id = '_' + (Math.random() + '').slice(2),

0 commit comments

Comments
 (0)