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.

Bug 195523 - End tag completion problem
Summary: End tag completion problem
Status: RESOLVED WONTFIX
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-15 17:18 UTC by Vladimir Riha
Modified: 2011-02-15 19:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2011-02-15 17:18:12 UTC
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.
Comment 1 Marek Fukala 2011-02-15 19:23:10 UTC
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.
Comment 2 Marek Fukala 2011-02-15 19:24:53 UTC
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.