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.
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>
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.