Microsoft KB Archive/274554: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - "&" to "&")
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
<div id="TitleRow">
<div id="TitleRow">


= <span id="KB274554"></span>BUG: Setting page-break-after:always for &lt;P&gt; Tag Causes Infinite Pagination =
= <span id="KB274554"></span>BUG: Setting page-break-after:always for <P> Tag Causes Infinite Pagination =




Line 44: Line 44:
== SYMPTOMS ==
== SYMPTOMS ==


Setting the '''page-break-after:always''' value for a &lt;P&gt; tag in an embedded style sheet may cause infinite pagination when you view the HTML page in Print Preview.<br />
Setting the '''page-break-after:always''' value for a <P> tag in an embedded style sheet may cause infinite pagination when you view the HTML page in Print Preview.<br />
<br />
<br />
If you try to print the HTML page, this infinite pagination causes the '''IEXPLORE''' process to take 98 to 100 percent CPU time.
If you try to print the HTML page, this infinite pagination causes the '''IEXPLORE''' process to take 98 to 100 percent CPU time.
Line 53: Line 53:
== CAUSE ==
== CAUSE ==


This problem occurs when you have an empty &lt;P&gt; tag and no space or text between the closing &lt;/P&gt; tag and the opening &lt;TABLE&gt; tag.
This problem occurs when you have an empty <P> tag and no space or text between the closing </P> tag and the opening <TABLE> tag.


</div>
</div>
Line 60: Line 60:
== RESOLUTION ==
== RESOLUTION ==


To resolve this problem, use the nonbreaking space entity (&amp;nbsp;) to add an extra space between the closing &lt;/P&gt; tag and the opening &lt;TABLE&gt; tag. Or, you could replace the &lt;P&gt;&lt;/P&gt; tags with a single &lt;P/&gt; tag.<br />
To resolve this problem, use the nonbreaking space entity (&nbsp;) to add an extra space between the closing </P> tag and the opening <TABLE> tag. Or, you could replace the <P></P> tags with a single <P/> tag.<br />
<br />
<br />
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.<br />
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.<br />
Line 87: Line 87:


Create a new HTML file called Test.htm, and paste the following code:
Create a new HTML file called Test.htm, and paste the following code:
<pre class="codesample">&lt;HTML&gt;
<pre class="codesample"><HTML>
&lt;HEAD&gt;
<HEAD>
&lt;TITLE&gt;Q274554&lt;/TITLE&gt;
<TITLE>Q274554</TITLE>
&lt;STYLE type=text/css&gt;
<STYLE type=text/css>
  P {PAGE-BREAK-AFTER:always}
  P {PAGE-BREAK-AFTER:always}
&lt;/STYLE&gt;
</STYLE>
&lt;/HEAD&gt;
</HEAD>
&lt;BODY&gt;
<BODY>
&lt;P&gt;&lt;/P&gt;
<P></P>
&lt;TABLE WIDTH=&quot;85%&quot; ALIGN=center BORDER=1 CELLSPACING=1 CELLPADDING=1&gt;
<TABLE WIDTH=&quot;85%&quot; ALIGN=center BORDER=1 CELLSPACING=1 CELLPADDING=1>
     &lt;TR&gt;
     <TR>
         &lt;TD&gt;11&lt;/TD&gt;
         <TD>11</TD>
         &lt;TD&gt;12&lt;/TD&gt;
         <TD>12</TD>
     &lt;/TR&gt;
     </TR>
         .       
         .       
         .
         .
Line 106: Line 106:
         .
         .
         .   
         .   
     &lt;TR&gt;
     <TR>
         &lt;TD&gt;141&lt;/TD&gt;
         <TD>141</TD>
         &lt;TD&gt;142&lt;/TD&gt;
         <TD>142</TD>
     &lt;/TR&gt;
     </TR>
&lt;/TABLE&gt;
</TABLE>
&lt;/BODY&gt;
</BODY>
&lt;/HTML&gt;
</HTML>
                 </pre>
                 </pre>
Make sure that the table extends beyond a single page.<br />
Make sure that the table extends beyond a single page.<br />
<br />
<br />
'''Note''': This bug does not reproduce if the &lt;TABLE&gt; tag is wrapped in &lt;P&gt;&lt;/P&gt; tags.
'''Note''': This bug does not reproduce if the <TABLE> tag is wrapped in <P></P> tags.


</div>
</div>

Latest revision as of 12:36, 21 July 2020

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