"Ilmari Karonen" <[email protected]> wrote in message 
news:[email protected]...
> Mark Clements (HappyDog) wrote:
>>
>> It is possible to have several identical headings on a page, but you are 
>> not
>> allowed to have duplicate id attributes within a page, so it's not as 
>> simple
>> as just using the section name as is currently the case.  Note that
>> duplicate values for the 'name' attribute is perfectly valid HTML, though 
>> a
>> little useless as a link destination (the first occurence on the page 
>> will
>> always be used).  Actually, come to think of it, how does the TOC handle
>> this?
>
> Headings that would have a name attribute identical to an earlier
> heading will have a number appended to the name to make it unique.  So
> no problem there.
>

But then section links will be incorrect if the order of the duplicate 
headings changes.  Mind you, I'm not sure if there's a way to avoid that, 
short of giving each section a permanent ID at the point it is first saved.

- Mark Clements (HappyDog) 



_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to