I have markup in my page that includes the tag:
<body>
<object codebase="blah" codetype="text/blah">
<param name="name" value="value"/>
<div>Some Markup</div>
</object>
</body>
The idea is for browsers to display the content of the <div>
by default, but if a special JS library is present, it will find all the elements and transform the ones it cares about (based on @codetype
).
This works in Firefox and WebKit, but fails in IE, because that browser seems to strip off the outer <object>
element, and just leaves the inner <div>
. That is, under Explorer, the DOM I get from the above markup looks like this:
<body>
<div>Some Markup</div>
</body>
Is this a documented behavior? Is there any way to make IE preserve the <object>
element in the DOM untouched? (I am currently testing this with IE7.)
Note: This isn't for embedding Flash, or similar multimedia.