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 - using direct text in HTML strict should be marked as an error
Summary: using direct text in HTML strict should be marked as an error
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: Sun Linux
: P4 blocker (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-15 11:33 UTC by Jindrich Sedek
Modified: 2014-10-06 13:26 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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