#181 bug
Filosof

Opera Form Methods don't work in application/xhtml+xml

Reported by Filosof | June 24th, 2008 @ 12:15 PM

Opera do not support __proto__ object

so Prototype.BrowserFeatures.SpecificElementExtensions will be set to FALSE

and this code will bee skipped in Opera:

 if (F.SpecificElementExtensions) {
    for (var tag in Element.Methods.ByTag) {
      var klass = findDOMClass(tag);
      if (Object.isUndefined(klass)) continue;
      copy(T[tag], klass.prototype);
    }
  }

BUT i test this part in Opera:

for (var tag in Element.Methods.ByTag) {
  var klass = findDOMClass(tag);
  if (Object.isUndefined(klass)) continue;
  copy(T[tag], klass.prototype);
}

it's work with no Errors, so jast add this code:

if (Prototype.Browser.Opera)
  Prototype.BrowserFeatures.SpecificElementExtensions = true;

after:

if (Prototype.Browser.MobileSafari)
  Prototype.BrowserFeatures.SpecificElementExtensions = false;

I don't relay known, how much it is correct. But i have many problem with Form obj in Opera before.

I try Opera 9.25, 9.27, 9.50 with

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN">

WinXP SP3

Prototype version is 1.6.0.2

sorry for my English

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Tags