html 2.0 question:

raman@crl.dec.com
Wed, 28 Sep 94 15:06:46 EDT

Hi,

I have a question about what's allowed inside an anchor tag.

I thought other elements could not be nested inside an anchor, ie <a name=foo>
<h1> title </h1> </a>
to be illegal.
But the following extract from the spec confuses me.
(I hope the above is correct!)
Handling arbitrary elements inside an anchor tag is highly unpleasant.

>From the html spec for anchor tags:

A
*

o *Required Parts*
<A>characters...</A>
o *All Parts*
<A NAME="..." HREF="..." REL="..." REV="..." URN="..."
TITLE="..." METHODS="...">characters...[<H1>]
[<H2>] [<H3>] [<H4>] [<H5>]
[<H6>] [<P>] [<HR>] [<UL>]
[<OL>] [<DIR>] [<MENU>] [<DL>]
[<PRE>] [<XMP>] [<LISTING>]
[<BLOCKQUOTE>] [<ADDRESS>] [<FORM>]
[<ISINDEX>] [<IMG>] [<BR>] [<EM>]
[<STRONG>] [<CODE>] [<SAMP>] [<KBD>]
[<VAR>] [<DFN>] [<CITE>] [<STRIKE>]
[<TT>] [<B>] [<I>] </A>
o *Allowed In Content Of...*
[<ADDRESS>] [<B>] [<BLOCKQUOTE>]
[<BODY>] [<CITE>] [<CODE>] [<DD>]
[<DFN>] [<DT>] [<EM>] [<FORM>]
[<H1>] [<H2>] [<H3>] [<H4>]
[<H5>] [<H6>] [<I>] [<KBD>]
[<LI>] [<P>] [<PRE>] [<SAMP>]
[<STRIKE>] [<STRONG>] [<TT>] [<VAR>]
o
o Discussion