From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: eww/shr "inspector" Date: Mon, 10 Feb 2020 06:34:43 +0100 Message-ID: <87d0anhuoc.fsf@gnus.org> References: <87a75udt14.fsf@ddavies.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="17721"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Derek Davies Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 10 06:35:51 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j11jb-0004WZ-Fe for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Feb 2020 06:35:51 +0100 Original-Received: from localhost ([::1]:57072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j11ja-0004Xn-Gz for ged-emacs-devel@m.gmane-mx.org; Mon, 10 Feb 2020 00:35:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52179) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j11iw-00040e-IT for emacs-devel@gnu.org; Mon, 10 Feb 2020 00:35:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j11iv-00035I-CY for emacs-devel@gnu.org; Mon, 10 Feb 2020 00:35:10 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:37180) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j11iv-0002jH-6A for emacs-devel@gnu.org; Mon, 10 Feb 2020 00:35:09 -0500 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j11ik-00084z-NU; Mon, 10 Feb 2020 06:35:01 +0100 In-Reply-To: <87a75udt14.fsf@ddavies.net> (Derek Davies's message of "Fri, 07 Feb 2020 15:47:03 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:4f9:2b:f0f::2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244902 Archived-At: Derek Davies writes: > So for any character position in an *eww* buffer one can find the stack > of dom references, , leaf to root, that produced the character at the > buffer position in question.. > > I've been hacking on this, but only since I haven't found this > functionality in any emacs package. Please let me know if it exists. > If not, I'm happy to discuss if and how this might be implemented and > implement it. I haven't seen anybody implementing anything like that. It should be possible to implement by just putting all the tags in shr-external-rendering-functions and then doing whatever marking is necessary. But shr doesn't do anything like this itself because I think it won't be generally that useful, and because it'll make HTML rendering slower, and it's already slower than it should be. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no