Microsoft KB Archive/191044

= FIX: Increase Indent Command Replaces DIV with BLOCKQUOTE =

Article ID: 191044

Article Last Modified on 3/7/2005

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q191044



SYMPTOMS
In Design view, if you click Increase Indent when the cursor is inside a element, the HTML tag is replaced with the 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 element. Instead, go to Source view and manually enclose the element within tags.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are 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:

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

194295 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 tag are lost (that is, the attributes are not replicated in the resulting tag).

For instance, the following element:

My div

is converted to the following 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 element that contains text. For example:

Test Div
 * 1) Switch to Design view.
 * 2) Place the cursor within the div tag's text.
 * 3) From the menu, click Format and Increase Indent.
 * 4) Switch back to Source view.

RESULT: The tags are replaced with tags.

Keywords: kbbug kbfix kbide kbgrpdsasp kbvs600sp3fix kbdsi kbvisid600bug kbeditor KB191044

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.