srid/ema

Malformed HTML breaks morphdom (link click fails)

Open

#65 opened on Dec 24, 2021

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Haskell (9 forks)github user discovery
buggood first issuemorphdom

Repository metrics

Stars
 (127 stars)
PR merge metrics
 (PR metrics pending)

Description

If the HTML served is malformed, the dev server's web socket code is unable to switch to the new page on link clicks because morphdom fails to apply the new HTML. The user will see the new URL appear in address bar, but the HTML itself wouldn't change.

Proposal: have Ema display a 'Bad HTML' error message in place.

Here's one malformed HTML:

<meta property="og:title" content="Posts tagged " non-tech" - Maralorns Blog">

Contributor guide