Avoid triggering a warning when Java is disabled in IE8. [#668 state:resolved]
This commit is contained in:
parent
4cd37c3d38
commit
94747c579f
|
@ -1,3 +1,5 @@
|
|||
* Avoid triggering warning when Java is disabled in IE8. [#668 state:resolved] (orv, kangax, Andrew Dupont, Tobie Langel)
|
||||
|
||||
* Simplify String#(un)escapeHTML and remove their DOM dependencies. (Tobie Langel)
|
||||
|
||||
* Update UnittestJS. Modifiy test template accordingly. (Tobie Langel)
|
||||
|
|
|
@ -1696,14 +1696,12 @@ Element.extend = (function() {
|
|||
}
|
||||
|
||||
var HTMLOBJECTELEMENT_PROTOTYPE_BUGGY = checkDeficiency('object');
|
||||
var HTMLAPPLETELEMENT_PROTOTYPE_BUGGY = checkDeficiency('applet');
|
||||
|
||||
if (Prototype.BrowserFeatures.SpecificElementExtensions) {
|
||||
// IE8 has a bug with `HTMLObjectElement` and `HTMLAppletElement` objects
|
||||
// not being able to "inherit" from `Element.prototype`
|
||||
// or a specific prototype - `HTMLObjectElement.prototype`, `HTMLAppletElement.prototype`
|
||||
if (HTMLOBJECTELEMENT_PROTOTYPE_BUGGY &&
|
||||
HTMLAPPLETELEMENT_PROTOTYPE_BUGGY) {
|
||||
if (HTMLOBJECTELEMENT_PROTOTYPE_BUGGY) {
|
||||
return function(element) {
|
||||
if (element && typeof element._extendedByPrototype == 'undefined') {
|
||||
var t = element.tagName;
|
||||
|
|
Loading…
Reference in New Issue