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 - html parser does not work with self closed DIVs
Summary: html parser does not work with self closed DIVs
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2012-10-12 07:25 UTC by msk
Modified: 2014-10-06 13:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log (81.28 KB, text/plain)
2012-10-12 07:25 UTC, msk

Note You need to log in before you can comment on or make changes to this bug.
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