Skip to content

Commit

Permalink
Fix parseView to not drop unclosed tags (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
tysonzero authored Dec 25, 2021
1 parent 94a384d commit b691e8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Miso/Html/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ parseView html = reverse (go (parseTree html) [])
go [] xs = xs
go (TagLeaf (TagText s) : next) views =
go next (Text s : views)
go (TagLeaf (TagOpen name attrs) : next) views =
go (TagBranch name attrs [] : next) views
go (TagBranch name attrs kids : next) views =
let
attrs' = [ P key $ A.String (fromMisoString val)
Expand Down

0 comments on commit b691e8d

Please sign in to comment.