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 162492 - False "Unmatched tag" warning
Summary: False "Unmatched tag" warning
Status: RESOLVED DUPLICATE of bug 149968
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 160450 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-13 07:49 UTC by infozone
Modified: 2009-06-18 13:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE screenshot (6.30 KB, image/png)
2009-04-13 07:54 UTC, infozone
Details

Note You need to log in before you can comment on or make changes to this bug.
Description infozone 2009-04-13 07:49:53 UTC
Type in code like this:

<select name='cont_type_code' class='button<?php echo $errors['cont_type_code']; ?>'>
	<option value='-' <?php echo empty($_POST['cont_type_code']) ? "selected='selected'" : ""; ?>></option>
	<option value='DC' <?php echo $_POST['cont_type_code'] == 'DC' ? "selected='selected'" : ""; ?>>DC</option>
	<option value='HC' <?php echo $_POST['cont_type_code'] == 'HC' ? "selected='selected'" : ""; ?>>HC</option>
	<option value='PW' <?php echo $_POST['cont_type_code'] == 'PW' ? "selected='selected'" : ""; ?>>PW</option>
	<option value='TC' <?php echo $_POST['cont_type_code'] == 'TC' ? "selected='selected'" : ""; ?>>TC</option>
	<option value='OT' <?php echo $_POST['cont_type_code'] == 'OT' ? "selected='selected'" : ""; ?>>OT</option>
	<option value='CS' <?php echo $_POST['cont_type_code'] == 'CS' ? "selected='selected'" : ""; ?>>CS</option>
	<option value='FT' <?php echo $_POST['cont_type_code'] == 'FT' ? "selected='selected'" : ""; ?>>FT</option>
</select>

Every odd <option> tag gets underlined as unmatched.
Comment 1 infozone 2009-04-13 07:54:04 UTC
Created attachment 79960 [details]
IDE screenshot
Comment 2 Marek Fukala 2009-04-14 13:04:03 UTC
The problem is caused by the templating language used inside the tags. Html parser actually doesn't properly recover
from such code.

Minimum usecase to reproduce (in a JSP file):

<select>
  <option <% %> ></option>
</select>
Comment 3 Marek Fukala 2009-04-17 10:48:03 UTC
*** Issue 160450 has been marked as a duplicate of this issue. ***
Comment 4 Marek Fukala 2009-04-21 11:06:25 UTC

*** This issue has been marked as a duplicate of 149968 ***
Comment 5 Marek Fukala 2009-06-18 13:17:00 UTC
the usecase works well after fixing 149968