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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.