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.
Summary: | Code completion offers cross-linking end tags. | ||
---|---|---|---|
Product: | web | Reporter: | Jiri Kovalsky <jkovalsky> |
Component: | HTML Editor | Assignee: | Marek Fukala <mfukala> |
Status: | CLOSED INVALID | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jiri Kovalsky
2005-02-07 08:20:03 UTC
In fact the behaviour is correct. DTDs for HTML documents define for each tag whether the tag has optional or required start and end tag. For example for HTML tag both start and end tags are optional meanwhile for TABLE tag are both required. The CC is driven by this metadata. When you write for example: <table> <tr> <td> </ and invoke CC - the CC will find all open tags before cursor and checks which ones has optional ends and which don't. Since the TD and TR has optional end the CC offers all items. In another example: <table> <tr> <td> <a> </ the A tag has required end so the CC offers only this one. The rules refers to the example you mentioned as well. I hope this is an acceptable explanation of the CC behaviour. Read more information in: http://www.w3.org/TR/REC-html40/struct/global.html http://www.w3.org/TR/REC-html40/sgml/dtd.html Okay, I see your point now. After all, this was only a P4 issue. :-) Verified as an invalid defect. |