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.
Steps to reproduce: 1. Type <a somewhere in the editor and press CTRL+SPACE. 2. Enter should complete the rest of the <a> tag, but it doesn't. It also doesn't complete the end tag </a>. According to http://wiki.netbeans.org/TS_60_HTMLeditor#Test_suite:_Code_completion (see 5) it should be working.
The specification is a bit outdated already I'm affraid. The completion doesn't close the tag if opened at <a| and enter is pressed to make it behavior consistent with the case where you type <| invoke CC, choose the <a> tag and press enter. At that stage one may continue writing the attributes or just close the tag. The general "shift-enter" (continue typing after the code has been completed) contract is not adhered here since few users are aware of this feature and were complaining about the completion closing the tag when they wanted to type some attributes. As for the end tag completion, it works fine if the open tag is closed, which only make sense I think. <a><| will or will not offer the end tag depending on the html completion setting (by default disabled). <a></| will always offer the end tag. If you have some case where the above is not true feel free to reopen along with *detailed* list of steps to reproduce. Thanks.
I forgot to mention there is also the "end tag autocompletion" so if you type <a>, the completion will autopopup offering you the end tag.