From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#24111: 25.1.50; SVG image displayed incorrectly in EWW Date: Tue, 24 Jan 2017 22:15:54 +0100 Message-ID: <87a8agma5x.fsf@gnus.org> References: <87popvvfd1.fsf@localhost.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485292637 8236 195.159.176.226 (24 Jan 2017 21:17:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2017 21:17:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 24111@debbugs.gnu.org To: Wouter Beek Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 24 22:17:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cW8Sg-0001Be-PG for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jan 2017 22:17:06 +0100 Original-Received: from localhost ([::1]:55820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cW8Sl-0000Ty-Ne for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jan 2017 16:17:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cW8Sf-0000Sx-SF for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2017 16:17:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cW8Sc-0000Q9-OD for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2017 16:17:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42668) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cW8Sc-0000Q5-L1 for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2017 16:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cW8Sc-0000r2-7m for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2017 16:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Jan 2017 21:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24111 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24111-submit@debbugs.gnu.org id=B24111.148529256532751 (code B ref 24111); Tue, 24 Jan 2017 21:17:02 +0000 Original-Received: (at 24111) by debbugs.gnu.org; 24 Jan 2017 21:16:05 +0000 Original-Received: from localhost ([127.0.0.1]:40867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cW8Rh-0008Vy-24 for submit@debbugs.gnu.org; Tue, 24 Jan 2017 16:16:05 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:50669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cW8Rf-0008UM-Kf for 24111@debbugs.gnu.org; Tue, 24 Jan 2017 16:16:04 -0500 Original-Received: from 2.150.49.21.tmi.telenormobil.no ([2.150.49.21] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cW8Rc-0000lu-Ft; Tue, 24 Jan 2017 22:16:02 +0100 In-Reply-To: <87popvvfd1.fsf@localhost.localdomain> (Wouter Beek's message of "Sat, 30 Jul 2016 07:56:10 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128393 Archived-At: Wouter Beek writes: > The web page opens directly above an inline SVG image that is displayed > incorrecly: only the lines of the tree structure are shown; the nodes of > the tree are not displayed, nor is their textual content. It's due to this code: ;; SVG images may contain references to further images that we may ;; want to block. So special-case these by parsing the XML data ;; and remove the blocked bits. (when (eq content-type 'image/svg+xml) (setq data (shr-dom-to-xml (libxml-parse-xml-region (point) (point-max))))) Which should probably not be run when we're not in "restricted" mode, i.e. in mail readers and the like. I'll disable it for normal eww usage. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no