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
-
Juriy Zaytsev June 24th, 2008 @ 01:40 PM
Could you explain how findDOMClass (which is using unsupported __proto__) could work in Opera?
Which "problem with Form obj" did you have?
-
Filosof June 24th, 2008 @ 02:39 PM
I have problem with all Form and Form.Element Prototype methods
it works wel if i use construction like this:
Form.Element.getValue(input);but this construction don't work in Opera
$(input).getValue();For example Form.serialize() base on .getValue(); so it don't work at all
in fact findDOMClass() don't base on __proto__.
it us *window[klass]*, witch work properly in opera.
Look at this simple Test:
-
John-David Dalton June 25th, 2008 @ 02:48 PM
- → Title changed from Form.Element & Form.Element.Methods don't work correct in Opera to Opera Form Methods don't work in application/xhtml+xml
- → State changed from new to bug
- → Tag changed from to dom form opera
the issue is not your code or your doctype. Its the .xhtml file extension.
When I remove that (on my local tests) everything works fine.
-
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.
