Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

BUG: When you split a cell in a table, the height of the rows that are not selected may also change, and some cells may have the wrong ROWSPAN attribute value


View products that this article applies to.

Symptoms

In the DHTML Editing Component, when you use the ExecCommand function together with the DECMD_SPLITCELL command ID to split a cell in a table, the height of the rows that are not selected may also change. Additionally, the ROWSPAN attribute of the new cell is not applied logically to cells that would require the operation. The operation should cause the value of the ROWSPAN attribute for the other cells in the same column to increase.

↑ Back to the top


Status

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

Steps to reproduce the problem

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
  1. Save the following code to an HTML file.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=unicode">
    <META content="MSHTML 5.50.4807.2300" name=GENERATOR><SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
    <!--
    
    function button1_onclick() {
    	var selArea = ActiveXEditor.DOM.selection.createRange();
    		
    	var t = "";
    	t += '<TABLE cellSpacing=1 cellPadding=1 width="75%" border=1>';
    	t += '  <TR>';
    	t += '      <TD>a</TD>';
    	t += '      <TD>b</TD></TR>';
    	t += '    <TR>';
    	t += '      <TD>c</TD>';
    	t += '      <TD>d</TD></TR>';
    	t += '    <TR>';
    	t += '      <TD>c</TD>';
    	t += '      <TD>d</TD></TR></TABLE>';
    		
    	selArea.pasteHTML( t );
    }
    
    function button2_onclick() {
    
    	ActiveXEditor.ExecCommand(5047, 2);
    
    }
    
    //-->
    </SCRIPT>
    </HEAD>
    <BODY LANGUAGE=javascript >
    <OBJECT id=ActiveXEditor classid=clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A 
    width="100%" height=200 VIEWASTEXT><PARAM NAME="ActivateApplets" VALUE="0"><PARAM NAME="ActivateActiveXControls" VALUE="0"><PARAM NAME="ActivateDTCs" VALUE="-1"><PARAM NAME="ShowDetails" VALUE="0"><PARAM NAME="ShowBorders" VALUE="0"><PARAM NAME="Appearance" VALUE="1"><PARAM NAME="Scrollbars" VALUE="-1"><PARAM NAME="ScrollbarAppearance" VALUE="1"><PARAM NAME="SourceCodePreservation" VALUE="-1"><PARAM NAME="AbsoluteDropMode" VALUE="0"><PARAM NAME="SnapToGrid" VALUE="0"><PARAM NAME="SnapToGridX" VALUE="50"><PARAM NAME="SnapToGridY" VALUE="50"><PARAM NAME="UseDivOnCarriageReturn" VALUE="0"></OBJECT>
    <INPUT type=button value="Insert table" id=button1 name=button1 LANGUAGE=javascript onclick="return button1_onclick()">&nbsp;
    <INPUT id=button2 type=button value="Split cell" name=button2 LANGUAGE=javascript onclick="return button2_onclick()">
    
  2. Open the HTML file in Microsoft Internet Explorer.
  3. Put the insertion point below the table.
  4. Click Insert table to insert a table.
  5. Put the insertion point in the first cell. (The first cell contains a.)
  6. Click Split cell.
  7. Put the insertion point in the empty cell that you created in step 6.
  8. Click Split cell.
The table has more columns in the selected row than in the rows that are not selected.

↑ Back to the top


Keywords: KB886347, kbbug, kbnofix

↑ Back to the top

Article Info
Article ID : 886347
Revision : 3
Created on : 7/5/2005
Published on : 7/5/2005
Exists online : False
Views : 323