WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Long form legends

for

From: Steven Faulkner
Date: Jun 10, 2005 3:20PM


Hi Thomas,

Thomas wrote:
> It seems to me that:
>
> 1) LEGEND is _required_ as the first child of FIELDSET.
> [HTML 4]
>
> 2) LEGEND _should_ (but not required) be the first child of FIELDSET.
> [XHTML 1]
>
> Is my interpretation correct?

running code containing FIELDSET element without a LEGEND element with
the 2 Doctype's (html 4.01 and xhtml 1.1) through the W3C validator
supports your interpretation.

best regards
stevef


> -----Original Message-----
> From: Thomas Jedenfelt [mailto: <EMAIL REMOVED> ]
> Sent: Monday, 6 June 2005 1:49 PM
> To: <EMAIL REMOVED> ; WebAIM Discussion List
> Subject: RE: [WebAIM] RE: Long form legends
>
>
> It seems to me that:
>
> 1) LEGEND is _required_ as the first child of FIELDSET.
> [HTML 4]
>
> 2) LEGEND _should_ (but not required) be the first child of FIELDSET.
> [XHTML 1]
>
> Is my interpretation correct?
>
> See Masayasu Ishikawa's replies in the thread:
> 'FIELDSET, LEGEND, HTML, & XHTML',
> in W3C Mailing list ' <EMAIL REMOVED> '.
> (http://lists.w3.org/Archives/Public/www-html/2002Feb/thread.html#25)
>
> (Masayasu Ishikawa is an employee of W3C, and works with HTML
> / XHTML.)
>
> Regards,
> Thomas Jedenfelt
>
> >
> > Steven Faulkner wrote:
> >
> > Does this mean that the W3C validator is incorrect when it
> says a xhtml
> > 1.0 transitional document containing a fieldset element
> without a legend
> > element is valid?
> >
> > with regards
> > Steven Faulkner
> >
> >
> > Jukka "Yucca" Korpela wrote:
> >
> > > Contrary to what the cited document claims,
> > > the <legend> element is _not_ optional. It is required by HTML
> > > syntax, see
> > > http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.10
> > > (Even the spec is misleading: it says that "The LEGEND
> element allows
> > > authors to assign a caption to a FIELDSET", but by the
> formal syntax,
> > > <legend> is required.)
>
>
> --
>
> Surf the Web in a faster, safer and easier way:
> Download Opera 8 at http://www.opera.com
>
> Powered by Outblaze


___________________
<< ella for Spam Control >> has removed Spam messages and set aside Later
for me
You can use it too - and it's FREE! http://www.ellaforspam.com