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 128519 - <strong> section confuses matching tags
Summary: <strong> section confuses matching tags
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-27 04:53 UTC by jamespb
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 jamespb 2008-02-27 04:53:21 UTC
Given this in a .html.erb file:

<tr>
  <td style="font-size:12px; color:#FFFFFF; padding:10px 0px 5px 10px;" bgcolor="#7db1cb">
    <strong>Support Center</strong>
  </td>
</tr>

Put your cursor on the /tr; the matching tr doesn't turn yellow.

Remove the <strong> line, do the same thing.  The matching tags now turn yellow.

Product Version: NetBeans IDE Dev (Build 20080227025219)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/james/.netbeans/dev
Comment 1 Torbjorn Norbye 2008-02-27 04:56:04 UTC
This is handled by the HTML embedding lexer
Comment 2 jamespb 2008-02-27 05:10:46 UTC
Similar problem here:

<table>
  <tr>
    <td>
      <%= error_messages_for :customer %>
    </td>
  </tr>
</table>
Comment 3 Marek Fukala 2008-03-05 11:39:39 UTC
The problem with the tag matching being broken by the embedded JSP or EL is already reported in issue #95303.

As for the <strong> ... funny - the problem is that the <sTRong> contains the "tr" as substring :-)
Comment 4 Marek Fukala 2008-03-05 19:11:47 UTC
fixed in revision c078fb70aed1 by reimplementing the html bracket matcher to be parser based.