Search

Edit.FormatDocument Changes the output of a renderd html page! by JanDeclercq

Closed
as Fixed Help for as Fixed

4
0
Sign in
to vote
Type: Bug
ID: 780113
Opened: 2/27/2013 7:03:23 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug

When using the Edit.FormatDocument commando on an ascx,aspx or any other html document. It changes the contents of the html so much that the page is rendered differently.

Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

What category (if any) best represents this feedback?

 

Steps to reproduce

make a html page with this code:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<style type='text/css'>
    .test > div{
    width:50%;
    display:inline-block
}
</style>
/head>
<body>
<div class="test">
    <div>1</div><div>2</div>
</div>
</body>
</html>

Render this page in any browser. 1 and 2 are shown beside each other.

Open this page in visual studio and format the code (Edit.FormatDocument)

open it in the browser: 1 and 2 are shown unther each other.

This comes because a space is added between the 2 div elements!

Product Language

English

Operating System

Windows 7

Operating System Language

English

Actual results

A space is added when formatting the document, making the page being rendered differently

Expected results

Reformatting a html/aspx page shouldn't affect the rendering of the page.

Locale

 
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 3/20/2013 at 2:37 PM
Thank you for your input.
This has been fixed in the next version of VS.
Posted by Microsoft on 3/12/2013 at 10:41 AM
Thank you for passing along this issue to us. At this point, we are pulling together this and other feedback as part of our planning and evaluation for the next release. We know that our customers are the most qualified people to help us learn how to make our products better, and we greatly appreciate hearing from you.
Posted by Microsoft on 2/27/2013 at 11:41 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 2/27/2013 at 7:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.