Hi,
while working with prototype and scriptaculous I received the following
error using Konqueror: "ReferenceError: Can''t find variable:
HTMLFormElement" ( Prototype 1.5.0_rc1 ). So I had a closer look in the
prototype.js file and recognized that there is a special function to
create needed elements for Konquereror and Safari.
The intersting line is in line 1298:
if (!window.HTMLElement &&
/Konqueror|Safari|KHTML/.test(navigator.userAgent)) {
This checks, weather HTMLElement is defined. For some reason meanwhile
the Konqueror and Safari support HTMLElement but the Konqueror still
has problems with the rest of the elements needed to extend.
If you change the line to
if (!window.HTMLFormElement &&
/Konqueror|Safari|KHTML/.test(navigator.userAgent)) {
the test fails and the needed elements are created. Can someone please
confirm this behavior or tell me if this is a correct fix or would
break something.
Thanks in Advance,
Martin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---