[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: info.js demo on Texinfo manual updated on website
From: |
Per Bothner |
Subject: |
Re: info.js demo on Texinfo manual updated on website |
Date: |
Fri, 18 Nov 2022 17:40:51 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 |
On 11/18/22 14:43, Gavin Smith wrote:
Unfortunately, it has various obvious problems. Most significantly, the
index search does not work.
The problem is line 1459 in info.js:
var index_links = document.querySelectorAll ("td[valign=top] a");
The <td> elements in index no longer have the valign="top" attribute,
so this query fails to find anything. Instead we can do:
var index_links = document.querySelectorAll ("td a");
Being a bit stricter in the search seems to make sense to me.
Maybe something like:
var index_links = document.querySelectorAll ("div.printindex td a");
I don't know if this is the right thing - i.e. if it matches all the indices
we need.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
- Status of texinfo/js/yarn.lock ?, Hilmar Preuße, 2022/11/13
- Re: info.js demo on Texinfo manual updated on website,
Per Bothner <=
- Re: info.js demo on Texinfo manual updated on website, Patrice Dumas, 2022/11/19
- Re: info.js demo on Texinfo manual updated on website, Gavin Smith, 2022/11/27
- Re: info.js demo on Texinfo manual updated on website, Per Bothner, 2022/11/27
- Re: info.js demo on Texinfo manual updated on website, Per Bothner, 2022/11/27
- Re: info.js demo on Texinfo manual updated on website, Gavin Smith, 2022/11/28
- Re: info.js demo on Texinfo manual updated on website, Per Bothner, 2022/11/29
- Re: info.js demo on Texinfo manual updated on website, Gavin Smith, 2022/11/29
- Re: info.js demo on Texinfo manual updated on website, Per Bothner, 2022/11/29
- Re: info.js demo on Texinfo manual updated on website, Gavin Smith, 2022/11/29
- Re: info.js demo on Texinfo manual updated on website, Gavin Smith, 2022/11/30