Hi,

Can you put together a minimalist, self-contained example and post it
to pastie.org or jsbin.com or jsfiddle.net or somewhere? Just the
minimum needed to show the problem.
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com

On Sep 28, 4:03 am, Trysta <trystal...@gmail.com> wrote:
> I am having trouble with using prototype on DOM elements in IE8.   For
> example I try to do $(myButton) where myButton is a
> DispHTMLButtonElement.  I have stepped through the extend function in
> the debugger and it goes through the following code:
>
> if (Prototype.BrowserFeatures.SpecificElementExtensions) {
>     if (HTMLOBJECTELEMENT_PROTOTYPE_BUGGY) {
>       return function(element) {
>         if (element && typeof element._extendedByPrototype ==
> 'undefined') {
>           var t = element.tagName;
>           if (t && (/^(?:object|applet|embed)$/i.test(t))) {
>             extendElementWith(element, Element.Methods);
>             extendElementWith(element, Element.Methods.Simulated);
>             extendElementWith(element,
> Element.Methods.ByTag[t.toUpperCase()]);
>           }
>         }
>         return element;
>       }
>     }
>
> It gets a false with (/^(?:object|applet|embed)$/i.test(t)))  which is
> a line of code I can't decipher.  It then simply returns the element
> instead of extending it.
>
> I am in IE8 mode using <meta http-equiv="X-UA-Compatible"
> content="IE=8" />
>
> Does anyone know what I am doing wrong with this?

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to