From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: HTML-Info design Date: Mon, 22 Dec 2014 15:31:41 +0700 Message-ID: References: <87388bnzha.fsf@newcastle.ac.uk> <87k31mdbhe.fsf@uwakimon.sk.tsukuba.ac.jp> <87tx0qiv45.fsf@fencepost.gnu.org> <87h9wqd3i5.fsf@uwakimon.sk.tsukuba.ac.jp> <87h9wqimf0.fsf@fencepost.gnu.org> <87y4q1fekv.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1419237117 4901 80.91.229.3 (22 Dec 2014 08:31:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Dec 2014 08:31:57 +0000 (UTC) Cc: Emacs developers To: "rms@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 22 09:31:50 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y2yP7-0001a6-3o for ged-emacs-devel@m.gmane.org; Mon, 22 Dec 2014 09:31:49 +0100 Original-Received: from localhost ([::1]:39585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2yP5-000590-Re for ged-emacs-devel@m.gmane.org; Mon, 22 Dec 2014 03:31:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2yP1-00058q-OY for emacs-devel@gnu.org; Mon, 22 Dec 2014 03:31:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y2yP1-0006Lr-16 for emacs-devel@gnu.org; Mon, 22 Dec 2014 03:31:43 -0500 Original-Received: from mail-ig0-x22a.google.com ([2607:f8b0:4001:c05::22a]:47794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y2yOz-0006Ld-Ob; Mon, 22 Dec 2014 03:31:41 -0500 Original-Received: by mail-ig0-f170.google.com with SMTP id r2so4974107igi.3; Mon, 22 Dec 2014 00:31:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=XaMKnoSop3DYojfIJ/7FQqm5P40EDCLhmZIUObD9JiQ=; b=w8BQD0O0pAOkFA8WTzQX9/2JqA+IdRqjeq02MpdxfJ4jO7EtYgl5F7RUWNr9gm+78C CYDGZ93Nxa0Cxmb2BQ+GbsUJ2dis1br8+1x0boYuenmHdEfk2NW9ZoSKgWMea5vUBwLf hFiFapB8tD+HLLBfHN/olQ/mpGb2rTo57WUbE8QR0MCT3mb6f8S0XlLWWQBwQl/bdtpD GrJNRnw1pCaYoNXqMnHRdKKIP20wmC73ltmb9a0krcTM5jiOZ2A3/t86b+wmKX7zD15L MozwG7epJv4x6JA3YuhGSQuTyOspsZKM7pjId2DP+HB9OYyFvT1pFkjKRXWTTkeij6Qi 5/3w== X-Received: by 10.50.111.193 with SMTP id ik1mr15053658igb.9.1419237101218; Mon, 22 Dec 2014 00:31:41 -0800 (PST) Original-Received: by 10.107.48.82 with HTTP; Mon, 22 Dec 2014 00:31:41 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: DzigS6ZM9Ez1B2_V-anmNon7wiU X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:180468 Archived-At: On Mon, Dec 22, 2014 at 2:12 PM, Richard Stallman wrote: > Would it be possible, using a Javascript extension to the browser, to > get similar behavior from a file of HTML? That is, load a whole > manual as a single file, then display just one subdivision of it, and > change to a different subdivision in accord with user commands? Technically possible. Wrap each node in an
element, style them as article.node { display: none }, then add to a single node a special class, e.g.
, and style it as article.active.node { display: block }. The script or extension would then only need to remove the =E2=80=9Cactive=E2=80=9D class= from one node and add it to another. Performance-wise, this might or might not be a good idea, depending on the file size. On the plus side, navigation between nodes of the same file will be near-instant. On the other hand, the browser will need to read and parse the whole file up front and keep it in process memory at all times.