Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VirtualDom_virtualize causes flashes on <img> #144

Open
ktosiek opened this issue Oct 13, 2018 · 0 comments
Open

VirtualDom_virtualize causes flashes on <img> #144

ktosiek opened this issue Oct 13, 2018 · 0 comments

Comments

@ktosiek
Copy link

ktosiek commented Oct 13, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant