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 158654 - [cc] tab key could complete HTML tags
Summary: [cc] tab key could complete HTML tags
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-17 09:30 UTC by Jindrich Sedek
Modified: 2009-05-18 10:47 UTC (History)
2 users (show)

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 Jindrich Sedek 2009-02-17 09:30:47 UTC
use this code:
--------
<t|
------
invoke cc at possitiono of "|"
type "a" to reduce cc list
only one item is on the list -> "table"
press Tab -> nothing happens, it would be good to fill the table code to have "<table |" and let the cc open with the 
list of attributes
pressing Enter has different behavior - closing whole table tag. This is bit different usecase
Comment 1 Marek Fukala 2009-02-17 11:01:28 UTC
Substitute longest common prefix doesn't work at all.

Try:

<ba| + CC + TAB => should complete <base| but nothing happens.
Comment 2 Marek Fukala 2009-04-28 13:44:35 UTC
fixed in web-main#3b6d9b188909
Comment 3 Jesse Glick 2009-04-28 21:22:50 UTC
This caused a failure in nbms-and-javadoc:

http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/2963/testReport/org.netbeans.modules.html.editor/generate_Version_1_12_0/generate/

RETURN TYPE FOR HtmlCompletionQuery::query CHANGED FROM
org.netbeans.modules.html.editor.completion.HtmlCompletionQuery$CompletionResult TO java.lang.Object

Yarda can you explain what this means? The module exposes friend packages only, so I am not sure why changes to it would
be causing test failures. I guess the problem is related to the fact that CompletionResult is package-private, which
looks like a mistake, but the change was from List<CompletionItem> to CompletionResult and that's not what the failure
message says.
Comment 4 Quality Engineering 2009-04-29 07:14:55 UTC
Integrated into 'main-golden', will be available in build *200904290201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3b6d9b188909
User: Marek Fukala <mfukala@netbeans.org>
Log: #158654 -[cc] tab key could complete HTML tags
Comment 5 Jesse Glick 2009-04-29 15:07:35 UTC
Reopening due to abovementioned test failure.
Comment 6 Marek Fukala 2009-04-30 10:22:05 UTC
fixed: http://hg.netbeans.org/web-main/rev/25f3c1b06ece
Comment 7 Jindrich Sedek 2009-05-14 16:10:17 UTC
verified.
NetBeans IDE Dev (Build 200905140201)