[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: bug in href or toc?
- From: Denis Barbier <nospam@thanx>
- Date: Tue, 12 Feb 2002 11:39:48 +0100
On Mon, Feb 11, 2002 at 11:56:56PM +0100, Werner Heuser wrote:
> ...
> > <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?
> For me I just have removed this constructs ;-)
> >From my stats Netscape <= 4.x isn't used very much (app. 7%).
> What about filling the empty <a> tag with ? As used
> in table cells to avoid some ugly looking empty cells.
This is indeed a common workaround, and fit with Petr's suggestion to
make modules more flexible.
For instance (not tested) current implementation could be written as
<define-tag toc:anchor endtag=required whitespace=delete>
<preserve name />
<set-var %attributes />
<defvar name "ToC<get-var __TOCCNT/>" />
<a name="<get-var name />">%body</a>
<restore name />
</define-tag>
and redefined by
<define-tag toc:anchor endtag=required whitespace=delete>
<preserve name />
<set-var %attributes />
<defvar name <get-var __TOCCNT/> />
<a name="<get-var name />"> </a>%body
<restore name />
</define-tag>
--
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