FIX: Increase Indent Command Replaces DIV with BLOCKQUOTE

ID: Q191044


The information in this article applies to:
  • Microsoft Visual InterDev, version 6.0


SYMPTOMS

In Design view, if you click Increase Indent when the cursor is inside a <div> element, the <div> HTML tag is replaced with the <blockquote> element. This can cause data loss.


CAUSE

This is caused by a limitation in the way Design view is implemented.


RESOLUTION

Do not use Increase Indent to indent a <div> element. Instead, go to Source view and manually enclose the <div> element within <blockquote> tags.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3.

For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why>

Q194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed


MORE INFORMATION

This is a data loss issue. Any attributes, except style attributes, that exist within the <div> tag are lost (that is, the attributes are not replicated in the resulting <blockquote> tag).

For instance, the following <div> element:

<div id=myDiv myCustomAttribute style="color:green">My div</div>

is converted to the following <blockquote> element:

<BLOCKQUOTE style="COLOR:green">My div</BLOCKQUOTE>

Steps to Reproduce Behavior

  1. Open an HTML file in Source view.


  2. In the body, create a <div> element that contains text. For example:

    <DIV id=myDiv style="color:green">Test Div</DIV>


  3. Switch to Design view.


  4. Place the cursor within the div tag's text.


  5. From the menu, click Format and Increase Indent.


  6. Switch back to Source view.


RESULT: The <div> tags are replaced with <blockquote> tags.

Additional query words:

Keywords : kbide kbVisID600bug kbGrpASP kbVS600sp3fix
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: May 24, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.