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 199104 - No error for unmatched <div> tag
Summary: No error for unmatched <div> tag
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.1
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 10:38 UTC by Marek Fukala
Modified: 2011-07-27 11:16 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2011-06-02 10:38:44 UTC
Following xhtml file doesn't show any error for unmatched div tag:

http://netbeans.org/bugzilla/attachment.cgi?id=108669
Comment 1 bht 2011-06-04 22:45:30 UTC
Would you please handle this as priority 2. It is a regression (worked in version 6.9.1). I am a bit concerned otherwise because there are currently ca 4,000 open priority 3 bugs.
Comment 2 bht 2011-06-05 05:58:04 UTC
The result of this drives me creazy. If a closing div is missing deep inside a hierarchy, then my validator complains about the outermost div not being closed. I open the file in NetBeans 6,9 to fix the error, but I can't because again, it complains at the end of the file.

So hours after editing the file when I did not notice the error, I can't systematically find that div that is not closed, and I get bloody eyes trying to fix this.
Comment 3 Marek Fukala 2011-06-06 13:12:51 UTC
fixed in web-main#d4b5e51c079b, releases/release701#03eb28eae7dd

The problem was one of the element's attribute w/o a value inside the code. This problem was shown as a warning so it likely escaped your notice. Since such problem is fatal from the xml point of view, further error analysis was disabled.

I've changed the html validator hints processing so the fatal errors never fals sto the build-in categories where they might be configured as warnings but always are shown as errors. I've also added some warning to the error messages which points out to the fact that file with such error cannot be properly processed by netbeans (and of course by the using application itself).

I hope this helps.
Comment 4 Quality Engineering 2011-06-07 06:32:49 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/
User: 
Log:
Comment 5 bht 2011-06-11 05:40:05 UTC
Thanks a lot.
Comment 6 Vladimir Riha 2011-07-27 09:02:14 UTC
verified