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 167092

Summary: using direct text in HTML strict should be marked as an error
Product: web Reporter: Jindrich Sedek <jsedek>
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: Sun   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jindrich Sedek 2009-06-15 11:33:24 UTC
use this code in HTML file:
-----------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
        <h1>TEST </h1>
        Blah blah blah
    </body>
</html>
---------------------
HTML standard doesn't allow text inside body element without any embedded block tag. I'm not sure why validator doesn't 
warn for Transitional DTD, but at least for Strict DTD we could show warning for this code as well as the HTML 
validator does.