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.
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.
Created attachment 22474 [details] Screenshot of wrong matching behaviour.
*** Issue 62835 has been marked as a duplicate of this issue. ***
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
Works fine in development build #200511031900 of NetBeans 5.0.