Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 372915

Summary: The XML editor replaces too much XML when forward slash is used to overwrite some selected text
Product: [WebTools] WTP Source Editing Reporter: Dan O'Connor <dan_oconnor>
Component: wst.xmlAssignee: wst.xml <wst.xml-inbox>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: dan_oconnor, nsand.dev
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Dan O'Connor CLA 2012-02-29 16:28:40 EST
Build Identifier: 1.0.300.v200805140200

When part of an end tag is selected in an xml editor, the entire end tag is deleted when the forward slash key is pressed.

Reproducible: Always

Steps to Reproduce:
In an Eclipse project create a new XML file.
Open the file in the webtools XML editor

Enter the following XML into the source:

<?xml version="1.0" encoding="UTF-8"?>
<doc>
<div>
<li></li>
</div>
</doc>

In line 4 select 
></li

press forward slash as if to replace the selected text with a forward slash

At this point I would expect my document to look like:

<?xml version="1.0" encoding="UTF-8"?>
<doc>
<div>
<li/>
</div>
</doc>

Instead it looks like:
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<div>
<li/div>
</doc>
Comment 1 Nick Sandonato CLA 2012-10-11 14:40:32 EDT
Hi, Dan. This was fixed in Helios.

*** This bug has been marked as a duplicate of bug 277052 ***