Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pjmi3-0005S5-9v for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Apr 2023 19:52:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pjmi1-0000dw-Hk for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Apr 2023 19:52:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pjmi1-0000dn-6Q for pgsql-hackers@lists.postgresql.org; Tue, 04 Apr 2023 19:52:49 +0000 Received: from mout.gmx.net ([212.227.17.21]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pjmhx-000tL6-Rz for pgsql-hackers@postgresql.org; Tue, 04 Apr 2023 19:52:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1680637954; i=brar@gmx.de; bh=0lvXDQitCsLGbTVXQfot6JVrRjLh20loOv3pDYl8xrE=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=Ei2dkoFqTfGf0fCWTgK0mtgf1POxsQONR7erlK39A2C5LxfmwucLm4gtyv5eyNItN 0bsZqiLd8cxUXIDZx21cR363uCUbA6eMOHQS8vy+hE4PoKIL3kGjRDSDA6hfy43PtV VDJym5qw9N26cBE6PwjeW1HG7AK2pOZefFazpdrbTjwULkMJeFVwUbz0YusesoYCIW 3JopOeBgUv8/W7Xc4tRxD3CxzG/lkR9ixu+1wSUwnNCJxlxeRc53331UFL2031UHRk Q7PKDKVXm5kH+YKwhe0m7M2vEMlnzlzAQxJimkyyYt/Hd/dfc6Jzxq/Bs4hK1UqPaM 7J+BwL6EWU9vA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.178.42] ([91.64.73.58]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Msq6C-1qYK1h3MIi-00tD17; Tue, 04 Apr 2023 21:52:33 +0200 Message-ID: Date: Tue, 4 Apr 2023 21:52:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: doc: add missing "id" attributes to extension packaging page To: Peter Eisentraut , Alvaro Herrera , "Karl O. Pinc" Cc: Tom Lane , vignesh C , Ian Lawrence Barwick , pgsql-hackers References: <20230323093555.3icw7zetwtmtrrzu@alvherre.pgsql> <184dc41b-7407-1bb9-7fd4-7fb35db8b993@enterprisedb.com> Content-Language: de-DE From: Brar Piening In-Reply-To: <184dc41b-7407-1bb9-7fd4-7fb35db8b993@enterprisedb.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:NHsx5U0yCC7Eotze4FzeUyFFiING9YYpGKqP5E2Mj4ZYBYNZXnW tBhYuqSuOq5MmmTSzhNew7U9LFecKmH3mKEyhhT17PU8Co4ZbVOdzaxci9D66VEj/AOAJBf C0L+RaVogcDvKgtVb2npJYG69R2Uy1OSJ+mbd0qAmwL43f+3AJH2FNrvcDUyRMtV9JrMO2M I7Ptm3T84W+rLUGlPRaWA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:7rwwYi/iUYY=;3oHSkdVfAg2hou8OsjOIK3wqoqL Id1J7fAbU6rdSITDuwvK2zfmboZo3iSpp1zFLckpXRcITvz15ADwmkuk998+hWGNuosUYgMgw gMfHpvCuqS9vhUSAWakeooU54PHfU6Q1Px98ZLJVNjutboSexXBcLiKH+hxlLVxigr69Y+Xca MkY/Ma8K7MYUHCn5tdXhzXhlZ/7h+y6iaDQ3yP8CmvjxxIU+OBTEWvj9FQSEQenKIlWHxb3CW wZn65Ec7owkAIUUch/aOw3Up3ce+w/YcomAvrOOm0ReFSiPDiKQNhq0jTcLbWj4UiwxlbuUws /n4/CxL3ZbT31urlBxANKM+dwjjJtBv3VjAj2ED3zoAa1Krh+HNCwPpdQ6k9OSt+IHLVmgnhf /v+Bpq/vOcsW9OvBBEM2qPbfo+rW2Z3ttDOZLjMD1Dbx9ni8onW5iA3Tn/pSwxqUkPLIps4FF yKuab2QnkuYuMkeZWMJRpasuZQ1ZwztR2peWaXX0+H2WkclVjdGJYQxhExOJ0k8IXBSWbGeTp W4CV6OYGedaUkjvKKxYHvKzEZrBDTnjBwczgdKLVTyNGu6iDO7c65oTZUTlzYyUfOGwp8v2qe bz2h/bCxTFkrM7A11SUsmvgvnF3hUzzat9XLSa7NVecWkolV+3qWl0Mpjvs/ra8f5Jek9tcRC 472wwJgAE6b/aZIhrMXYBBKNprQkO5h4x6hY5jCelbP1iaOyLJKcz1qzokfTguaXLh/xQfAd+ vaK6MLu83c8SIluAOuFnoKj02qp9uDuoqVhYmiMYZ1ZCquwMuAObwCSPfQli1f88zlqJmdYdL ARZ/vs5ceeqoxbNuD7Mvo964UjmZ9KA6akZ5nKKzY6S/KNNMu4SBrZcViU0iyTBIv87C+f1XR kbgOWd/I5c+BN0wK9QpgLG5Ubs0II4/2a4h9tj6Z6vcJYxPtMXWRDLIxGAM0YpBBLezfUhE0h EGrBwpk59yHMRSzRkLE0LqBKy3U= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 04.04.2023 at 16:54, Peter Eisentraut wrote: > > First of all, it works very nicely and is very useful.=C2=A0 Very welcom= e. Thank you! > The XSLT implementation looks sound to me.=C2=A0 It would be a touch bet= ter > if it had some comments about which parts of the templates were copied > from upstream stylesheets and which were changed.=C2=A0 There are exampl= es > of such commenting in the existing customization layer.=C2=A0 Also, avoi= d > introducing whitespace differences during said copying. I will amend the patch if we agree that this is the way forward. > However, I wonder if this is the right way to approach this.=C2=A0 I don= 't > think we should put these link markers directly into the HTML.=C2=A0 It > feels like this is the wrong layer.=C2=A0 For example, if you have CSS > turned off, then all these # marks show up by default. I'd consider this a feature rather than a problem but this is certainly debatable. I cannot reliably predict what expectations a user who is browsing the docs with CSS disabled might have. The opposite is true too. If we'd move the id links feature to javascript, a user who has javascript disabled will not see them. Is this what they'd want? I don't know. Also, while about 1-2% of users have Javascript disabled, I haven't heard of disabling CSS except for debugging purposes. In general I'd consider the fact that CSS or Javascript might be disabled a niche problem that isn't really worth much debating but there is definitely something to consider regarding people using screen readers who might suffer from one or the other behavior and I'd definitely be interested what behavior these users would expect. Would they want to use the id link feature or would the links rather disrupt their reading experience - I have no idea TBH and I hate speculating about other people's preferences. > It seems to me that the correct way to do this is to hook in some > JavaScript that does this transformation directly on the DOM. Then we > don't need to carry this presentation detail in the HTML. Moreover, it > would avoid tight coupling between the website and the documentation > sources.=C2=A0 You can produce the exact same DOM, that part seems okay, > just do it elsewhere.=C2=A0 Was this approach considered?=C2=A0 I didn't= see it > in the thread. I briefly touched the topic in [1] and [2] but we didin't really follow up on the best approach. Regards, Brar [1] https://www.postgresql.org/message-id/68b9c435-d017-93cc-775a-c604db9ec683= %40gmx.de [2] https://www.postgresql.org/message-id/a75b6d7c-3fa4-d6a8-cf23-6b5180237392= %40gmx.de