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 59590 - Invalid tag matching when empty tag is used
Summary: Invalid tag matching when empty tag is used
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 62835 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-03 12:09 UTC by Jiri Kovalsky
Modified: 2007-09-25 01:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of wrong matching behaviour. (9.15 KB, image/png)
2005-06-03 12:10 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2005-06-03 12:09:54 UTC
Development build #200506021900 of NetBeans 4.2
Windows XP, JDK 1.5.0_03 build #06

Description:
============
Tag matching is not working correctly if empty tag is used inside another tag
with same name. See attached screenshot to see what I mean.

Steps to reproduce:
===================
1. Create new sample web application project.
2. Create new XML document in "Source Packages" node.
3. Type the following code into <root> body:

11 <root>
12   <a>
13     <a/>|
14   </a>
15 </root>

4. Leave cursor at position 13:9 as | char denotes in the sample above.
5. End tag at line 14 will be highlighted.
Comment 1 Jiri Kovalsky 2005-06-03 12:10:32 UTC
Created attachment 22474 [details]
Screenshot of wrong matching behaviour.
Comment 2 Jiri Kovalsky 2005-08-23 11:12:17 UTC
*** Issue 62835 has been marked as a duplicate of this issue. ***
Comment 3 Marek Fukala 2005-10-12 15:58:31 UTC
fixed

Checking in
xml/text-edit/src/org/netbeans/modules/xml/text/completion/SyntaxQueryHelper.java;
/cvs/xml/text-edit/src/org/netbeans/modules/xml/text/completion/SyntaxQueryHelper.java,v
 <--  SyntaxQueryHelper.java
new revision: 1.12; previous revision: 1.11
done
Checking in
xml/text-edit/src/org/netbeans/modules/xml/text/syntax/XMLSyntaxSupport.java;
/cvs/xml/text-edit/src/org/netbeans/modules/xml/text/syntax/XMLSyntaxSupport.java,v
 <--  XMLSyntaxSupport.java
new revision: 1.26; previous revision: 1.25
done
Comment 4 Jiri Kovalsky 2005-11-04 13:38:16 UTC
Works fine in development build #200511031900 of NetBeans 5.0.