Access Violation in Mshtml Using Style Attribute Value "display:hidden" (242199)



The information in this article applies to:

  • Microsoft Internet Explorer 5.0 for Windows NT 4.0

This article was previously published under Q242199

SYMPTOMS

When you view a Web page that contains a style attribute value of "display:hidden" you may receive an "Access violation" error message in Mshtml.dll.

CAUSE

To hide the content, use the "visibility:hidden" value for the style attribute.

RESOLUTION

This problem does not occur in Internet Explorer version 5.01.

WORKAROUND

If you do not want the elements to take up space when they are hidden, set the elements to use a style value of "display:none". In addition, switch the placement of the two lines containing the following elements:

p style="display:none"
/span

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Modification Type:MajorLast Reviewed:10/1/2002
Keywords:kberrmsg kbprb kbProgramming KB242199