On Feb 12, 2006, at 10:12 PM, Tim Stebbing wrote:
This code does not work in IE, it works in FF, I cannot tell why?
var id = 123;
var OBJECT = createDOMFunc('object');
var PARAM = createDOMFunc('param');
var EMBED = createDOMFunc('embed');
I don't really have time to screw around on a PC right now, but my
first approach would be to remove the embed tag there because it
doesn't really apply to IE, and then I'd take a look at the innerHTML
of what it generated. If it wasn't obvious what the workaround
should be at that point, I'd give up and just use innerHTML to create
the object tag on IE. I definitely know that setting the OBJECT tag
works just fine with innerHTML because I've seen it done a bunch of
times.
Doing things the standard way is sometimes counter-productive when
working with IE due to its bugs. Since MochiKit.DOM is really just
an alternate syntax for DOM (with a few IE hacks), there's only so
much it can do to make things "just work" everywhere. Some of the
bugs are related to semantics, e.g. you must include THEAD and TFOOT
in a TABLE in order for it to display the TBODY sections. This could
be something dumb like that.
-bob