Re: make anchor names XML IDs

> I just selected "In 2000" and
> did "make target" in Amaya (5.3 gtk on linux)
> and it made <a name="2000">In 2000</a>.
> 
> Then I think it changed it to
> <a id="_2000" name="2000">
> which is goofy.

If you selected an element instead of a simple text Amaya generated
an id instead of an anchor.
We decided that policy because many browsers don't support links to id
and our users want to generate compatible pages.
In any case if Amaya generated at the same time a name and an id when a
link has to be generated we have to decide to use either the name or the id.

> Whatever algorithm Amaya uses to pick
> anchor names, please fix it to choose
> XML IDs.

Amaya looks for the first word longer than 3 characters then checks
if this name or id is already used in the document. If it's used it
adds a code at the end and rechecks.

> -- 
> Dan Connolly, W3C http://www.w3.org/People/Connolly/
> 
> 
> 

Received on Monday, 28 January 2002 03:15:46 UTC