From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: DOM manipulation functions Date: Sun, 23 Nov 2014 16:58:44 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416758385 5266 80.91.229.3 (23 Nov 2014 15:59:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Nov 2014 15:59:45 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 23 16:59:39 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 1XsZZZ-0005iz-JJ for ged-emacs-devel@m.gmane.org; Sun, 23 Nov 2014 16:59:37 +0100 Original-Received: from localhost ([::1]:49081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsZZZ-0003Cf-70 for ged-emacs-devel@m.gmane.org; Sun, 23 Nov 2014 10:59:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsZZG-0003CY-AT for emacs-devel@gnu.org; Sun, 23 Nov 2014 10:59:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsZZ9-0004uM-K6 for emacs-devel@gnu.org; Sun, 23 Nov 2014 10:59:18 -0500 Original-Received: from mx6.bahnhof.se ([213.80.101.16]:60394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsZZ9-0004tZ-DZ for emacs-devel@gnu.org; Sun, 23 Nov 2014 10:59:11 -0500 Original-Received: from localhost (mf.bahnhof.se [213.80.101.20]) by mx6-reinject (Postfix) with ESMTP id 4DCCC4154B for ; Sun, 23 Nov 2014 16:59:09 +0100 (CET) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MF2) Original-Received: from mf2.bahnhof.se ([127.0.0.1]) by localhost (mf2.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fs3SdnMwWM4z for ; Sun, 23 Nov 2014 16:58:58 +0100 (CET) Original-Received: from mta.verona.se (h-235-102.a149.priv.bahnhof.se [85.24.235.102]) by mf2.bahnhof.se (Postfix) with ESMTP id 75C09940172 for ; Sun, 23 Nov 2014 16:58:58 +0100 (CET) Original-Received: from localhost (unknown [127.0.0.1]) by mta.verona.se (Postfix) with ESMTP id 4E73351E5A2 for ; Sun, 23 Nov 2014 15:58:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at verona.se Original-Received: from mta.verona.se ([127.0.0.1]) by localhost (exodia.verona.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3F3_oKl6TG27 for ; Sun, 23 Nov 2014 16:58:44 +0100 (CET) Original-Received: from exodia.verona.se (www.verona.se [192.168.200.15]) by mta.verona.se (Postfix) with ESMTP id B507951E597 for ; Sun, 23 Nov 2014 16:58:44 +0100 (CET) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 23 Nov 2014 16:18:24 +0100") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 213.80.101.16 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:178080 Archived-At: Lars Magne Ingebrigtsen writes: > As part of the TLS management thing, it was suggested that Emacs display > visually certificate fingerprints: > > http://sebsauvage.net/wiki/doku.php?id=php:vizhash_gd > > I've started looking into this, and it seems like this would be really > easy to implement as SVG images -- SVG provides all the primitives > vizhash needs. > > SVG is basically an XML DOM, and while constructing these it would be a > lot easier if Emacs had a DOM manipulation library. > > So here's my two questions: > > 1) Would it be OK if I added a DOM manipulation/searching library to > Emacs? > > 2) Due to stupidity on my part I disregarded Chong's advice on how to do > the DOM manipulation things in shr.el, so we now basically have two DOMs > in Emacs -- the xml.el one and the one that shr uses. > > I think it would be a good idea if I rewrote shr.el to just use the > xml.el DOM, like Chong said back then. This will break any third-party > code that relies on shr internals, though. > > So: New dom.el, and rewrite shr/eww to depend on dom.el. > > Stefan, does this sound OK to you? It sounds cool, and I would like to use it in the xwidgets branch, if possible. -- Joakim Verona