Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363034 - [editor] xhtml end-tag gets deleted when typing an attribute
Summary: [editor] xhtml end-tag gets deleted when typing an attribute
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: 3.4 M5   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-07 05:13 EST by Gábor Farkas CLA
Modified: 2012-01-04 13:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gábor Farkas CLA 2011-11-07 05:13:33 EST
Build Identifier: 20110218-0911

For a simplest reproduction, take this html snippet in an xhtml file:
<a x=">
  "something"
</a>
And put the cursor after the first quotation mark, then type a forward slash. The ending tag gets deleted. The reproduction only needs quotation marks in the element content.

This occured to me when I had a big script block and added the type="text/javascript" attribute to it, and realized after deployment that the ending script tag got deleted. Of course, eclipse automaticall adds the ending quotation mark when typing a new attribute, but many times I just mistype and delete the ending quotation mark.

Reproducible: Always

Steps to Reproduce:
Described in the details.
Comment 1 Nick Sandonato CLA 2012-01-04 13:21:39 EST
Changes released to correct the auto edit strategies for JSP, HTML, and XML. Thanks for the bug report.