Klovera.comBlog
Follow Us:

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!

3 Responses to “HTMLFormElement is Undefined in IE (Prototype and Mootools)”

  1. Josh Lyon says:

    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.

  2. Dustin J. Czysz says:

    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.

  3. HTMLFormElement is Undefined in IE (Prototype and Mootools) : Klovera | RefreshTheNet says:

    [...] Orig­i­nal post: HTML­FormEle­ment is Unde­fined in IE (Pro­to­type and Mootools) : Klovera [...]

Leave a Reply

Klovera is a forward thinking, full service digital agency whose purpose is to bring value to our client's businesses through creativity, strategy, metrics, user experience and technology.