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 219970

Summary: html parser does not work with self closed DIVs
Product: web Reporter: msk
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description msk 2012-10-12 07:25:40 UTC
Product Version = NetBeans IDE 7.3 Beta (Build 201210011125)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_05
Runtime = Java HotSpot(TM) Client VM 23.1-b03

HTML parser does not recognize self closed tags (<div/>)
It shows 

<div> - unclosed block1
  <div/> - block2 start
</div> - block2 end

istead of 
<div> - block1 start
  <div/> - self closed block2
</div> block1 end
Comment 1 msk 2012-10-12 07:25:45 UTC
Created attachment 125828 [details]
IDE log
Comment 2 Marek Fukala 2012-10-17 15:29:22 UTC
this is because it is not possible self-close div as the validation says:

Self-closing syntax ("/>") used on a non-void HTML element. Ignoring the slash and treating as a start tag.
From line 15, column 13; to line 15, column 18

I admit the parse tree could still be as you mentioned, I'll take a look later