From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: * X-Spam-Status: No, score=1.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,PDS_OTHER_BAD_TLD autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 19096 invoked from network); 2 Sep 2021 13:20:26 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2021 13:20:26 -0000 Received: from mail-il1-f175.google.com ([209.85.166.175]) by 4ess; Thu Sep 2 07:53:33 -0400 2021 Received: by mail-il1-f175.google.com with SMTP id v16so1455181ilo.10 for <9front@9front.org>; Thu, 02 Sep 2021 04:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=vL+DoR9ZX02rQ+cJmo+1HgphNb7R6R/ZNt49rZFm/WM=; b=he4pahhmCuh+7U/NyfBn7Useuvo8LYv5/3fYQwh3UhUT5qX2W3NErpx0szedhOv9uP S9BmY2+5a2suzalC5UYc1D8Ae27dquM3PSDvKZeBBtsiBA/lFb2EpF9HyElpbQqBrCsw MnsbDTxcSeyGNmKIPItgP1twmZHwSI+j6SKadyyIihFtKkGuQls0ng7tt93jt/bKuBfK CqDxAL7lEu1yD7tkzN17qGKbwfhYUhWDwbapn1sfj3X1YnDTmPv65tnMsCGElJVvgB6D haWPBYrri1XSYfhB3XcqlYk+q7IzWCT94+/m9WMHA9JCmvKx3llObFo8lsgf/01mW1Kv Gt3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=vL+DoR9ZX02rQ+cJmo+1HgphNb7R6R/ZNt49rZFm/WM=; b=NlFk1kZta0B9i0ORlYRQtuBnsjKIPUXZtHLqnrt6GTXtYyBf1TwEjnYVJggDfko8ai uidNpiI0JGg5fKDZvGGPeDQvRsQrdWLpO/BftRYRfreq7w3fEnbF2OmcCvIQ789iqIIi BUqZiLTSql5IZFI6So8gzKqWgPOFGEDg3USlS/GE9MLu8qkiB28kQj9qTnhpji45lxio JvI5iH3MiKEqfk6I7v9ZvwW7xbkYent+k0KRYx1fxJ+io7A9q8izqfy8RKX2p60G3z++ 4mreb1o7ctI2/8x0te39g0764GxpxvcfP/X24dZqielBsCSMr8Qe7yh+fX1TC5THP13M 1Htw== X-Gm-Message-State: AOAM53188VSmn490WJxt16MTNB/MVjixUZYhkb1tQKCcDN+Ldt/tgGey uuEW9v8YWA195iNrzQY77dHYxNN1rwFP9TEYxpm1tNWQllc= X-Google-Smtp-Source: ABdhPJw3gmjAIj5uyBrlSf6G/mevgGdvXKkl865wBK3+MqHb7T+0sAs1waEtgQCScAn1cH2M8vpI3OZcdi5MrcjEsA4= X-Received: by 2002:a65:5b04:: with SMTP id y4mr2848694pgq.195.1630583040554; Thu, 02 Sep 2021 04:44:00 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6a20:3f9c:b0:56:fd24:af with HTTP; Thu, 2 Sep 2021 04:44:00 -0700 (PDT) In-Reply-To: <3C2596FB-B368-4A1D-8974-F8F63A99E671@gmail.com> References: <3C2596FB-B368-4A1D-8974-F8F63A99E671@gmail.com> From: hiro <23hiro@gmail.com> Date: Thu, 2 Sep 2021 13:44:00 +0200 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: flexible anonymous DOM-aware hardware metadata Subject: Re: [9front] htmlfs Reply-To: 9front@9front.org Precedence: bulk On 8/31/21, Pavel Renev wrote: > I have a half-backed DOMfs: > http://git.nsmpr.xyz/domfs/files.html > but it just represents documents as a flat list of numbered nodes (the way > rio serves its windows) and their hierarchy is provided through a separate > file. > > The challenge with xml/html is that unlike traditional file trees their > elements do not have unique names and instead addressed by their order. > Additionaly, element's attributes often play bigger role than text data they > contain. > Style also can override tree hierarchy when it comes to rendering, and when > it comes to javascript, programs look up needed elements via global search > by id and usually only care about element's immediate parent/children. > > TL;DR: the tree is a lie. > Maybe serving html via some kind of database query interface would be > better. > why not do like xpath? numbers can signify order. we don't support javascript anyway, so the tree wouldn't really change under our feet...