[Bug 1172] New: Nesting errors accepted for HTML 2.0, 3.2, 4.01

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1172

           Summary: Nesting errors accepted for HTML 2.0, 3.2, 4.01
           Product: Validator
           Version: 0.6.7
          Platform: Other
               URL: http://validator.w3.org
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: check
        AssignedTo: link@pobox.com
        ReportedBy: martin@martinultima.cjb.net
         QAContact: www-validator-cvs@w3.org


I was recently going through an old book I had teaching how to write HTML and
creating a Web site explaining all the problems with its code (horribly invalid
is the nicest way I can say it), and discovered a bug with paragraph nesting.  I
had uploaded the file from my hard disk and set up a few overrides:

DOCTYPE - HTML 2.0
ENCODING - UTF-8

(the original had no valid DOCTYPE declaration) and oddly enough it accepted the
following code:

<P>I made it...</P>
<BR>to tell everyone about me

I believe this is a nesting error (the paragraph tag is specifically closed, yet
the line break is allowed outside of it), but am not entirely sure.  At any
rate, I tried it with HTML 3.2, then 4.01 Transitional, then XHTML 1.0
Transitional, and only the last one failed to validate (and that was only
because the document was in all uppercase, which I understand is not allowed in
XHTML).

Received on Friday, 18 March 2005 17:05:23 UTC