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 166462 - The " character eats beginning of next tag
Summary: The " character eats beginning of next tag
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: _ alexpetrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-03 10:21 UTC by martinhavle
Modified: 2009-07-23 07:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
tld library (353 bytes, text/xml)
2009-06-03 13:44 UTC, martinhavle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description martinhavle 2009-06-03 10:21:50 UTC
Occurs at NB 7 RC2 ( build 200906030001) with JDK7b57.

At html/tld files, attributes of tags "eat" the following text.
Eg. when having <table align="center<tr><td style="color: blue;">.... and trying to add "> to close the table tag,
the result is following: <table align="center">tr><td style="color: blue;">
Comment 1 Jindrich Sedek 2009-06-03 12:59:44 UTC
I'm not able to reproduce the problem :( Could you attach whole source file that you are using - if possible some small 
one.
Comment 2 martinhavle 2009-06-03 13:44:34 UTC
Created attachment 83153 [details]
tld library
Comment 3 martinhavle 2009-06-03 13:47:14 UTC
I am not able to reproduce it in html file, but in the attached file, when calling CC between <tag> and </taglib>, the
result is following: <tag></tag>lib>
Comment 4 Marek Fukala 2009-06-19 13:14:19 UTC
this is xml completion issue
Comment 5 Sergey Lunegov 2009-06-22 09:29:56 UTC
Alex, please take a look.
Comment 6 _ alexpetrov 2009-07-22 20:40:18 UTC
Fixed in trunk: http://hg.netbeans.org/main/rev/0246f8030210

Steps for checking:
1. Create new Web Application project
2. Add a new Tag Library Descriptor (New -> Other... -> Categories: Web, File Types: Tag Library Descriptor -> Next ->
Finish).
   A new file "newtag_library.tld" will be added to the project.
   Open it.
3. Put a cursor before the last tag "</taglib>"
4. Type exactly the following text "<tag>".
   Hide a code completion box if it appears.
5. Press Ctrl+Space to invoke a code completion box.

Result:
- the last line should look like "<tag></tag></taglib>" (a closing tag "</tag>" will be inserted),
  a wrong replacement "<tag></tag>lib>" has been fixed.
Comment 7 Quality Engineering 2009-07-23 07:48:01 UTC
Integrated into 'main-golden', will be available in build *200907230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0246f8030210
User: Alex Petrov <alexpetrov@netbeans.org>
Log: Fix for issue [#166462]: a closing tag removes a part of the next correct tag.