Microsoft KB Archive/932175

From BetaArchive Wiki
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


  • Windows Internet Explorer 7
  • Microsoft Internet Explorer 6.0


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" "">
<html xml:lang="en" xmlns="" xmlns:vml="urn:schemas-microsoft-com:vml">
<title>VML Oval</title>
<style type="text/css">
vml\:* {
behavior: url(#default#VML);
<h1>VML Oval</h1>
<vml:oval style="width:100pt;height:50pt" fillcolor="red">

Keywords: kbtshoot kbprb KB932175