Microsoft KB Archive/274554

From BetaArchive Wiki

Article ID: 274554

Article Last Modified on 5/11/2006



APPLIES TO

  • Microsoft Internet Explorer 5.5



This article was previously published under Q274554

SYMPTOMS

Setting the page-break-after:always value for a

tag in an embedded style sheet may cause infinite pagination when you view the HTML page in Print Preview.

If you try to print the HTML page, this infinite pagination causes the IEXPLORE process to take 98 to 100 percent CPU time.

CAUSE

This problem occurs when you have an empty

tag and no space or text between the closing

tag and the opening tag.

RESOLUTION

To resolve this problem, use the nonbreaking space entity ( ) to add an extra space between the closing

tag and the opening
tag. Or, you could replace the

tags with a single

tag.


This issue is resolved for Internet Explorer 5.5 Service Pack 2 with an updated version of the file MSHTML.DLL. This file is included with the MS02-023: May 15, 2002, Cumulative Patch for Internet Explorer.

For additional information about this Cumulative Patch for Internet Explorer, click the article number below to view the article in the Microsoft Knowledge Base:

321232 MS02-023: May 15, 2002, Cumulative Patch for Internet


STATUS

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

MORE INFORMATION

Steps to Reproduce Behavior

Create a new HTML file called Test.htm, and paste the following code:

<HTML>
<HEAD>
<TITLE>Q274554</TITLE>
<STYLE type=text/css>
 P {PAGE-BREAK-AFTER:always}
</STYLE>
</HEAD>
<BODY>
<P></P>
<TABLE WIDTH="85%" ALIGN=center BORDER=1 CELLSPACING=1 CELLPADDING=1>
    <TR>
        <TD>11</TD>
        <TD>12</TD>
    </TR>
        .       
        .
        .
        .
        .  
    <TR>
        <TD>141</TD>
        <TD>142</TD>
    </TR>
</TABLE>
</BODY>
</HTML>
                

Make sure that the table extends beyond a single page.

Note: This bug does not reproduce if the
tag is wrapped in

tags.

REFERENCES

For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:


Additional query words: printing continuous

Keywords: kbbug kbfix KB274554