Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 932175 - Last Review: September 22, 2011 - Revision: 3.0
VML element is not displayed in strict standards-compliant mode in Internet Explorer
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.
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
}Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
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>
APPLIES TO
- Windows Internet Explorer 9
- Windows Internet Explorer 7
- Microsoft Internet Explorer 6.0
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate