Avoid triggering a warning when Java is disabled in IE8. [#668 state:resolved]

This commit is contained in:
Tobie Langel 2009-08-23 23:24:36 +02:00
parent 4cd37c3d38
commit 94747c579f
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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;