<?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>22372</bug_id>
          
          <creation_ts>2013-06-15 04:43:20 +0000</creation_ts>
          <short_desc>validator claims &apos;document type does not allow element &quot;UL&quot; here&apos;, but I think HTML 4.01 Transitional does; or else HTML 4.01 Specification is unclear</short_desc>
          <delta_ts>2015-02-16 00:38:40 +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>Parser</component>
          <version>1.3</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://www.plam.cantech.bg</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="J. Randall Owens">jrowens.w3</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>plam</cc>
          
          <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>89344</commentid>
    <comment_count>0</comment_count>
    <who name="J. Randall Owens">jrowens.w3</who>
    <bug_when>2013-06-15 04:43:20 +0000</bug_when>
    <thetext>Test case: http://validator.w3.org/check?uri=http%3A%2F%2Fhtdr.e-junkie.com%2Fadmin%2Ffieldset_test.php&amp;charset=%28detect+automatically%29&amp;doctype=Inline&amp;ss=1&amp;group=0&amp;user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices
If Bugzilla has a problem with the URL more than a line long, shortened:
http://tinyurl.com/lekusql
http://preview.tinyurl.com/lekusql if you&apos;re paranoid


This is the pretty bare-bones test case here. A fieldset within a form, and an unordered list within the fieldset. The Validator tells me &apos;document type does not allow element &quot;UL&quot; here&apos;. If I enable a legend element in it (currently commented out) before the UL, it validates. But in the HTML 4.01 Transitional (which that page is) DTD:

&lt;!--
  #PCDATA is to solve the mixed content problem,
  per specification only whitespace is allowed there!
 --&gt;
&lt;!ELEMENT FIELDSET - - (#PCDATA,LEGEND,(%flow;)*) -- form control group --&gt;
&lt;!ATTLIST FIELDSET
  %attrs;                              -- %coreattrs, %i18n, %events --
  &gt;

&lt;!ELEMENT LEGEND - - (%inline;)*       -- fieldset legend --&gt;

&lt;!ATTLIST LEGEND
  %attrs;                              -- %coreattrs, %i18n, %events --
  accesskey   %Character;    #IMPLIED  -- accessibility key character --
  &gt;

I&apos;ve forgotten a thing or two about reading DTDs; is the LEGEND there supposed to be mandatory? If not, then it would seem to be a Validator bug.

If it is mandatory, there are at least two other things that would need fixing. The Nu Validator does validate this page:
http://validator.w3.org/nu/?showsource=yes&amp;doc=http%3A%2F%2Fhtdr.e-junkie.com%2Fadmin%2Fsimple_test_html.php

(perhaps a difference between DTD &amp; Schema?)
and, the HTML 4.01 Specification, http://www.w3.org/TR/html4/interact/forms.html#h-17.10 , says nothing about requiring a LEGEND in each FIELDSET (aside from quoting the DTD as above), and furthermore says, &quot;[t]he LEGEND element allows authors to assign a caption to a FIELDSET,&quot; where &quot;allows&quot; seems to imply that it isn&apos;t mandatory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89346</commentid>
    <comment_count>1</comment_count>
    <who name="J. Randall Owens">jrowens.w3</who>
    <bug_when>2013-06-15 04:56:39 +0000</bug_when>
    <thetext>I forgot to mention the other possibility I was considering, that I&apos;m not understanding %flow; in the DTD correctly. It looks as though %flow; can be either %block; or %inline;, and %block; can be %list; among others, and %list; can be either UL or OL, of course. But like I said, I&apos;ve forgotten plenty about reading DTDs.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>