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 162955 - Bad error message for invalid content of tags with optional end tag
Summary: Bad error message for invalid content of tags with optional end tag
Status: RESOLVED INVALID
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-17 15:34 UTC by Marek Fukala
Modified: 2009-05-18 10:47 UTC (History)
0 users

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 Marek Fukala 2009-04-17 15:34:14 UTC
1) put following code into an html file:
    <p>
    <ul>
    </p>

=>both last two tags are marked as unmatched instead of marking <ul> is invalid content of <p> tag
- it works well for tags with required end tag like <div>:

<div>
<title></title>
</div>
Comment 1 Marek Fukala 2009-04-17 16:03:23 UTC
The message is in fact correct. Since the <p> tag has optional end tag and doesn't have to contain any other content,
the parser closes the tag once it finds the <ul> tag. The <ul> tag doesn't have end tag=> first unmatched tag msg. and
the </p> end tag is unmatched since the <p> is already closed.