html 2.0 question:
raman@crl.dec.com
Date: Wed, 28 Sep 94 15:06:46 EDT
Message-id: <9409281903.AA03118@arctic.crl.dec.com>
Reply-To: raman@crl.dec.com
Originator: html-wg@oclc.org
Sender: html-wg@oclc.org
Precedence: bulk
From: raman@crl.dec.com
To: Multiple recipients of list <html-wg@oclc.org>
Subject: html 2.0 question:
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
X-Comment: HTML Working Group (Private)
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