bug-texinfo
[Top][All Lists]
Advanced

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

Re: html structure revisited


From: Patrice Dumas
Subject: Re: html structure revisited
Date: Fri, 19 Feb 2021 21:01:45 +0100

On Mon, Feb 15, 2021 at 09:15:30PM +0000, Gavin Smith wrote:
> On Mon, Feb 15, 2021 at 02:41:55PM +0100, Patrice Dumas wrote:
> > Hello,
> > 
> > I had a look at the result when there is no node, with a document like
> > 
> > @top top
> > 
> > @chapter chap1
> > 
> > @section sec1
> > 
> > and in that case there is are no <div>, but <span> are used instead.
> > (There is also a lone </div> closed, not sure where it comes from.)
> 
> I notice another problem with that input: accesskey="1" is an attribute
> on two separate elements:

If there is more than one node/section with children, there will be
duplication of accesskey=, either in menu of mini_toc depending on the
case.  I am not sure that it is bad.  We could also consider that this
indeterminacy is natural as there are more than one target possible for
accesskeys and let the browser sort them out.

If you feel strongly about it, however, it could be possible to make
sure that the accesskeys are unique per file.

> 
> <body lang="en">
> <span id="top"></span><h1 class="top">top</h1>
> 
> <ul class="section-toc">
> <li><a href="#chap1" accesskey="1">chap1</a></li>
> </ul>
> <span id="chap1"></span><h2 class="chapter">1 chap1</h2>
> 
> <ul class="section-toc">
> <li><a href="#sec1" accesskey="1">sec1</a></li>
> </ul>
> <span id="sec1"></span><h3 class="section">1.1 sec1</h3>
> 
> <hr></div>
> 
> 
> 
> </body>
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]