EMBED and IFRAME in HTA on Vista



Hi!

I'm having trouble with an HTA file on Vista. I am trying to embed an SVG
file using the EMBED element. All works fine if I set the WMODE attribute of
the EMBED element to "transparent" or "opaque". However, if I omit the WMODE
attribute or set it to "window" (its default value), then the HTA crashes
immediately upon startup. This is an issue for me because the SVG image uses
animation as well as other scripting tricks, and rendering is much, much
slower if the WMODE attribute is set to something other than "window". The
crash also occurs if I choose to embed the image using an IFRAME element
instead of an EMBED. None of the syptoms occur on Windows XP.

Here's an example HTA file. Simply change the URL pointing to
"lightness.svg" so that it points to any other SVG file.

<html>
<head>
<title></title>
<hta:application id="HW2MD_app" applicationname="MissionDude"
version="1.53" border="thick" caption="yes" icon="missiondude.ico"
showintaskbar="yes" singleinstance="yes" windowstate="maximize" scroll="no"
scrollflat="yes" innerborder="no" selection="no" sysmenu="yes"
maximizebutton="yes" minimizebutton="yes" navigable="no" contextmenu="no"
borderstyle="thin"/>
</head>
<body>

<embed type="image/svg+xml" src="lightness.svg"
style="width:720px;height:540px;" wmode="window"/>

<!--
<embed type="image/svg+xml" src="lightness.svg"
style="width:720px;height:540px;" wmode="transparent"/>
-->
<!--
<iframe src="lightness.svg"></iframe>
-->
</body>
</html>

.