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 202028 - Code complete incorrectly closing HTML tags
Summary: Code complete incorrectly closing HTML tags
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Marek Fukala
Depends on:
Reported: 2011-09-12 16:32 UTC by cautionbug
Modified: 2011-09-28 14:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description cautionbug 2011-09-12 16:32:32 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_27
Runtime = Java HotSpot(TM) Client VM 20.2-b06

i've searched google for "Netbeans html tag closures" and do not see this issue.
When writing HTML, the code complete is attempting to add closing tags to self-closing tags like IMG, INPUT, BR, and so on.

<input type="text" name="sometext"> -- When i type that ">", code complete brings up "</input>"
Same for all other tags.

The only time this doesn't happen is if i add the self-closing "/>", but my understanding is that's not valid HTML, but XHTML. Shouldn't code complete know what the closure should be based on the TAG i used? And depending on the doctype (or content type, i guess), determine whether the closure should be a separate tag, or the "/>" closure?
Comment 1 Marek Fukala 2011-09-28 14:27:40 UTC
already fixed in 7.1