HTMLFormElement is Undefined in IE (Prototype and Mootools)
Dustin | Programming & Scripting | November 15th 2007
If you are utilizing both Prototype (which is used with Scriptaculous) and Mootools on your website and run accross this javascript error “HTMLFormElement is Undefined” there appears to be some sort of conflict when you use both these frameworks together. This appears to only be an issue in IE? Firefox had no problems including both in my example. I worked around it by using an if statement and only loading the javascript framework needed. If anyone has a workaround for using both on one page without errors I would love to see it!
I’ve noticed that no JS errors are explicitly thrown in Firefox when using Prototype and Mootools together, but there are definitely issues. When including both on the same page I start having conflicts and certain elements on my site start breaking.
Some time has passed since I posed this issue. After a few years experience working with Javascript frameworks I think the best solution is to simply use one framework, even if that means re-writing some of the code or plugins.
[...] Original post: HTMLFormElement is Undefined in IE (Prototype and Mootools) : Klovera [...]