GNU bug report logs - #24831
shr mangling messages

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Mon, 31 Oct 2016 02:47:02 UTC

Severity: normal

Done: Katsumi Yamaoka <yamaoka <at> jpl.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 24831 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: bug#24831: shr mangling messages
Date: Fri, 04 Nov 2016 12:17:18 +0100
Katsumi Yamaoka <yamaoka <at> jpl.org> writes:

> I found it in some mails from amazon.co.jp, but not so many and
> not so annoying.  Here it is:
>
> <html>
> ...
> </html>             --MuLtIpArT_BoUnDaRy--

Oh, right...

> Well, is this a reasonable operation?
>
> (with-temp-buffer
>   (insert "<html><body>Foo</body></html>Bar")
>   (libxml-parse-html-region (point-min) (point-max)))
>  => (html nil (body nil "Foo") (html nil (p nil "Bar")))

Yes, it's two <html> elements after each other.  In HTML, the <html>
start (and end) tags are optional.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 8 years and 254 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.