Microsoft KB Archive/932175: Difference between revisions

From BetaArchive Wiki
m (Text replacement - "<" to "<")
m (Text replacement - ">" to ">")
 
Line 81: Line 81:
</div>
</div>
To reproduce this problem, use the following page:
To reproduce this problem, use the following page:
<pre class="codesample"><?xml version=&quot;1.1&quot; encoding=&quot;UTF-8&quot; ?&gt;
<pre class="codesample"><?xml version=&quot;1.1&quot; encoding=&quot;UTF-8&quot; ?>
<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;>
<html xml:lang=&quot;en&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xmlns:vml=&quot;urn:schemas-microsoft-com:vml&quot;&gt;
<html xml:lang=&quot;en&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xmlns:vml=&quot;urn:schemas-microsoft-com:vml&quot;>
<head&gt;
<head>
<title&gt;VML Oval</title&gt;
<title>VML Oval</title>
<style type=&quot;text/css&quot;&gt;
<style type=&quot;text/css&quot;>
vml\:* {
vml\:* {
behavior: url(#default#VML);
behavior: url(#default#VML);
}
}
</style&gt;
</style>
</head&gt;
</head>
<body&gt;
<body>
<h1&gt;VML Oval</h1&gt;
<h1>VML Oval</h1>
<div&gt;
<div>
<vml:oval style=&quot;width:100pt;height:50pt&quot; fillcolor=&quot;red&quot;&gt;
<vml:oval style=&quot;width:100pt;height:50pt&quot; fillcolor=&quot;red&quot;>
</vml:oval&gt;
</vml:oval>
</div&gt;
</div>
</body&gt;
</body>
</html&gt;</pre>
</html></pre>


</div>
</div>

Latest revision as of 10:26, 21 July 2020

Knowledge Base


VML element is not displayed in strict standards-compliant mode in Internet Explorer

Article ID: 932175

Article Last Modified on 10/27/2007



APPLIES TO

  • Windows Internet Explorer 7
  • Microsoft Internet Explorer 6.0




SYMPTOMS

When an HTML page uses the !DOCTYPE element in Windows Internet Explorer 7 or in Microsoft Internet Explorer 6, a Vector Markup Language (VML) element is not displayed in strict standards-compliant mode.

RESOLUTION

To resolve this problem, set the VML style to "display:inline-block" by using the following code:

vml\:* {
behavior: url(#default#VML);display:inline-block
}

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

The VML element is displayed correctly if you do both of the following:

  • Do not use strict standards-compliant mode.
  • Remove the !DOCTYPE element.

For more information about strict standards-compliant mode, visit the following Microsoft Web site:

To reproduce this problem, use the following page:

<?xml version="1.1" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:vml="urn:schemas-microsoft-com:vml">
<head>
<title>VML Oval</title>
<style type="text/css">
vml\:* {
behavior: url(#default#VML);
}
</style>
</head>
<body>
<h1>VML Oval</h1>
<div>
<vml:oval style="width:100pt;height:50pt" fillcolor="red">
</vml:oval>
</div>
</body>
</html>

Keywords: kbtshoot kbprb KB932175