VML element isn't displayed in strict standards-compliant mode in Internet Explorer 9
03/26/2020
2 minutes to read
In this article
Important
The Internet Explorer 11 desktop application will be retired and go out of support on June 15, 2022 (for a list of what's in scope, see the FAQ). The same IE11 apps and sites you use today can open in Microsoft Edge with Internet Explorer mode. Learn more here.
A Vector Markup Language (VML) element isn't displayed in strict standards-compliant mode when an HTML page uses the !DOCTYPE element in Internet Explorer 9.
Original product version: Internet Explorer 9
Original KB number: 932175
Resolution
To solve this problem, set the VML style to display:inline-block by using the following code:
vml\:* {
behavior: url(#default#VML);display:inline-block
}
More Information
The VML element is displayed correctly if you make sure the following things:
Don't use strict standards-compliant mode.
Remove the !DOCTYPE element.
For more information about strict standards-compliant mode, see Doctype.
To reproduce this problem, use the following page:
xmlns="http://www.w3.org/1999/xhtml"
xmlns:vml="urn:schemas-microsoft-com:vml">
VML Ovalvml\:*
{
behavior: url(#default#VML);
}