Skip to content

VirtualDom_virtualize causes flashes on <img> #144

@ktosiek

Description

@ktosiek

When virtualizing an <img>, the src attribute is interpreted as an attribute. But Html.Attributes.src is a property.

This inconsistency confuses _VirtualDom_diffFacts, which generates a patch to delete the attribute and add the property, resulting in a visible flick on Firefox 62 (with developer tools closed). Chrome 69 seems to handle it fine, and I don't have a different browser to test on handy.

Would a patch adding an attribute -> property mapping to virtualize, at least for the properties available in Html.Attributes, make sense?

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