Subject: Re: bug#24831: shr mangling messages

From: Ted Zlatanov <[email-masked]>
Date: Fri, 04 Nov 2016 14:18:03 -0400

On Tue, 01 Nov 2016 13:16:52 -0400 Richard Stallman <[email-masked]> wrote: 

>> Another idea would be first run it through a validator.
>> If valid, proceed as before.
>> If invalid, just spew out all the text nodes of the whole document,
>> separated by spaces.

RS> Do we have a validator in Emacs Lisp?  Or would we run one as a child?
RS> What program is available?

IMHO validation is not a workable solution, both because of complexity
and because real-world HTML authors are incredibly skilled at writing
broken HTML that somehow renders in the browsers they support.

Ted