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 108560 - HTML/XHTML Closing-Tag Auto-Completion Feature must be case sensitive
Summary: HTML/XHTML Closing-Tag Auto-Completion Feature must be case sensitive
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 123480 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-30 03:35 UTC by ilvisne
Modified: 2010-02-08 01:54 UTC (History)
1 user (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 ilvisne 2007-06-30 03:35:06 UTC
Summary is enough clear. here an example:

a start-tag like this <aAAa> has been closed as </aaaa>.
Comment 1 Marek Fukala 2007-07-02 13:43:55 UTC
As for HTML editor the completion case is detected according to first letter of the completed matched tag. For example
if you have:

<BODY>
</ ...cc will offer </BODY> 

for <body> it offers </body>

Using of mixed-case tag names like <bODY> in HTML documents doesn't make much sense to me. OTOH it make sense in XML, so
reassigning this issue to XML for evaluation. For me (html) the resolution is WONTFIX (it is a P5 enhancement at most).
Comment 2 ilvisne 2007-07-02 15:44:18 UTC
In the world of JSF, which is used with XHTML and JSP, it makes sense. Example: <h:selectManyListbox> 
Comment 3 Marek Fukala 2007-07-13 10:19:59 UTC
yes, for JSF it make sense, I talked about *HTML* tags, not about JSP tags. It works for them if they are properly
declared in the JSP file.
Comment 4 ilvisne 2007-07-13 14:11:14 UTC
i know you talk about HTML (JSP was just an example besides XHTML).

The question is: What about XHTML? Is XHTML part of Netbeans? If yes, who can fix this?
Comment 5 Samaresh Panda 2008-03-25 01:38:35 UTC
*** Issue 123480 has been marked as a duplicate of this issue. ***
Comment 6 Samaresh Panda 2008-06-27 23:58:39 UTC
Specific to HTML/XHTML.
Comment 7 Marek Fukala 2008-06-30 13:55:57 UTC
I am not sure how it behaves in xml now, but I'll add a doctype test and make the cc case sensitive for xhtml.
Comment 8 Jindrich Sedek 2008-07-16 12:41:00 UTC
simillar problem can also appear for unresolved library

situation:
I have delcared a taglib directive, but the taglib is not found by IDE -> jsp tags are not recognized correctly and 
they are marked as HTML tags, but the case sensitivity is important in this situation either for HTML (JSP) files
Comment 9 Marek Fukala 2008-08-26 14:58:26 UTC
jsedek, I'll add a special check for namespaces into the html completion so tags containing namespace prefix will be
case sensitive.

for xhtml the case sensitivity will be default as well.

I hope this satisfy all of you. 
Comment 10 Marek Fukala 2008-08-26 15:13:07 UTC
Not sure whether you are aware of it, but there is another possibly unexpected behavior - if you for example type <bOD
and invoke the completion, the <bOD text is removed and replaced by <body> from the completion. I am not saying this is
a bug, just informing you so you can protest if you find it a problem. 
Comment 11 Marek Fukala 2008-08-28 16:06:44 UTC
fixed the proposed way

* html tags completion always follow the previous tag case
* xhtml completion is always lowercase
* non-html end tags are now offered in the completion, preserving original case
+ bonus ;-) end tag autocompletion is not so agresive (autocompletes the text) if one invokes completion just behing an
open tag.

changeset:   98716:78300fe5620d
tag:         tip
user:        Marek Fukala <mfukala@netbeans.org>
date:        Thu Aug 28 17:04:08 2008 +0200
summary:     #108560 - HTML/XHTML Closing-Tag Auto-Completion Feature must be case sensitive
Comment 12 Quality Engineering 2008-08-30 05:37:07 UTC
Integrated into 'main-golden', available in build *200808300201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/78300fe5620d
User: Marek Fukala <mfukala@netbeans.org>
Log: #108560 - HTML/XHTML Closing-Tag Auto-Completion Feature must be case sensitive
Comment 13 Jindrich Sedek 2010-02-08 01:54:47 UTC
verified
NetBeans IDE Dev (Build 201002080200)