srid/ema

Malformed HTML breaks morphdom (link click fails)

Open

#65 aperta il 24 dic 2021

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Haskell (9 fork)github user discovery
buggood first issuemorphdom

Metriche repository

Star
 (127 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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">

Guida contributor