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 195520 - Code Completion offers invalid closing tags
Summary: Code Completion offers invalid closing tags
Status: RESOLVED WORKSFORME
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-15 16:58 UTC by Vladimir Riha
Modified: 2011-02-16 09:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample file to reproduce html closing tag error (286 bytes, text/html)
2011-02-16 08:46 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2011-02-15 16:58:01 UTC
Steps to reproduce:
1. Create new HTML file
2. Type <table><tr><td></td></ and invoke code completion
3. All displayed closing tags are blue, even though only HTML valid tags should be blue, rest of them is supposed to be gray.
Comment 1 Marek Fukala 2011-02-15 19:28:37 UTC
Perfectly works for me for html4.01 and html5 content. Please elaborate the steps to reproduce and possibly reopen. I need information like: what is the doctype, what is the file extension, what is the content, possibly attach the file itself and specify the location on row:column base. Thanks.
Comment 2 Vladimir Riha 2011-02-16 08:46:26 UTC
Created attachment 106054 [details]
Sample file to reproduce html closing tag error

It is html file with HTML5 doctype. Problem is at 12:29. I tested it in the latest build  201102100500
Comment 3 Vladimir Riha 2011-02-16 08:52:35 UTC
Comment on attachment 106054 [details]
Sample file to reproduce html closing tag error

<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
      <table><tr><td></td></
  </body>
</html>
Comment 4 Marek Fukala 2011-02-16 09:21:11 UTC
the completion offers only </td></tr></body></html> which is correct since tr, th and body has optional end tags.