This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[2007110262308, jdk1.5.0] to reproduce: ------------- 1) type in a .jsp: <h|2> NOTE: the | char represents cursor 2) invoke CC and choose <head> ERROR: CC expands to invalid: '<head>2>' I would expect: '<head>' For case like '<h|2 lang="en">' we should produce: <head lang="en"> Reproducible in CSS and JavaScript as well.
The current behaviour is correct, consistent with java btw. I would personally didn't like if the completion deleted the content behing the cursor. The only think which should work is that the completion shouldn't duplicate the same text if it already exists behind the cursor: <he|ad> => <head>, not <head>ad>
Do you have a case where this behavior is wrong?
<div on|mousehover="..."/> & complete onclick - do you really think we should replace the mousehover by mouseclick? Why java doesn't do that as well? If you have some reasonable basis why we should do that I will reconsider. For now it seems to me not to be a good idea.
Spoken with Java guys and they track it as regular issue #108168. Reopening to be consistent with Java.
Ok, if hie claims we should have this... I just a stupid coder.