Skip to content

DOM mutations are not the same depending on code syntax #14

@pauldijou

Description

@pauldijou

Not sure if this is a bug or not, but depending on the code syntax, the resulting DOM is the same but not the mutations to render it.

Mostly, having Html.App.map inside a Maybe.withDefault will result on removing and adding a new node while having Maybe.withDefault inside Html.App.map will result on editing the node attributes and changing the text inside it.

Here is a repo reproducing the issue https://github.com/pauldijou/elm-dom-diff

IMO, since the final virtual DOM is the same, it should probably apply the same patch / mutation events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions