Subject: Re: bug#37009: EWW Gets Confused on Invalid HTML

From: Noam Postavsky <[email-masked]>
Date: Tue, 13 Aug 2019 13:55:01 -0400

Nick Daly <[email-masked]> writes:

> EWW gets confused when facing unescaped less-than-signs.

> Unfortunately, the page does not escape the less-than symbol before "xs"
> on the second line, so the "<-" (and several more characters) aren't
> displayed.

I'm not sure how feasible it will be to fix this at all.  Eww relies on
libxml for parsing, and it's not as flexible as a typical web browser:

    (with-temp-buffer
      (insert "<html>
      <body>abc <- xyz<body>
    </html>")
      (libxml-parse-html-region (point-min) (point-max)))

    ;=> (html nil (body nil "abc\n"))