[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: bug in href or toc?



On Mon, Feb 11, 2002 at 01:10:00PM +0100, Thomas R. Koll wrote:
> On Sun, Feb 10, 2002 at 11:19:07PM +0100, Werner Heuser wrote:
> > Hi,
> > 
> > this line in WML
> > 
> > <h3><href url="http://www.fujitsu-siemens.de" name="Fujitsu">: Lifebook
> > Biblo B-2130</h3>
> > 
> > results in this HTML code
> > 
> > <h3><a name="ToC4"><a href="http://www.fujitsu-siemens.de">Fujitsu</a>:
> > Lifebook Biblo B-2130</a></h3>
> > 
> > As you see there is one </a> to much. I probably shouldn't use links in
> > headers,
> > and have removed these construct. But just to let you know.
> 
> No it ain't a bug.
> you obviously use wml::std::toc which creates a TableOfContent and adds
> a <a name..> to all <hX>
> 
> IMHO wlm::std::toc is missing some features like excluding a <hX> from the
> TOC (even though <protect> might do it) and an additional <nobr> style
> (see my patch from last year).

Hmm, are you telling me I forgot something ;)
Will look at it again.

> So try <protect> if you really want no TOC

IMO output should be

 <h3><a name="ToC4"></a><a href="http://www.fujitsu-siemens.de">Fujitsu</a>:
 Lifebook Biblo B-2130</h3>

IIRC this construct (i.e. an empty <a> tag) was avoided because older
Netscape did not recognize them as anchors.
Maybe it is time to leave such workarounds behind and deal with decent
browsers.  Comments?

-- 
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com