<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>1172</bug_id>
          
          <creation_ts>2005-03-18 17:05:23 +0000</creation_ts>
          <short_desc>Nesting errors accepted for HTML 2.0, 3.2, 4.01</short_desc>
          <delta_ts>2005-04-07 01:23:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>0.6.7</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://validator.w3.org</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Ultima">martin</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3905</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Ultima">martin</who>
    <bug_when>2005-03-18 17:05:23 +0000</bug_when>
    <thetext>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:

&lt;P&gt;I made it...&lt;/P&gt;
&lt;BR&gt;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).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3906</commentid>
    <comment_count>1</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-03-18 18:09:36 +0000</bug_when>
    <thetext>Chances are that this is perfectly legal in those document types as it depends 
on the content model of the parent element of the br element whether it is 
allowed at that position, for example, in HTML 4.01 Transitional you can use

&lt;body&gt;
...
&lt;br&gt;
...
&lt;/body&gt;

while you can&apos;t do that in HTML 4.01 Strict.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3822</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2005-04-07 01:23:48 +0000</bug_when>
    <thetext>Without a sample document / URI, and given that nesting validation is fairly well tested, I agree with 
Comment #1, and think the particular markup given in comment #0 probably was valid in its context.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>