Subject: Re: bug#24111: 25.1.50; SVG image displayed incorrectly in EWW

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 24 Jan 2017 22:15:54 +0100

Wouter Beek <[email-masked]> 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