Closed hpate-omicron closed 6 years ago
I noticed this while reading through the code, the conditional checks on https://github.com/elm/virtual-dom/blob/master/src/Elm/Kernel/VirtualDom.js#L496 will always return true
true
(key !== 'value' || key !== 'checked' || domNode[key] !== value) && (domNode[key] = value);
Any string will pass key !== 'value' || key !== 'checked'
key !== 'value' || key !== 'checked'
Some core team folks reviewed https://github.com/elm/virtual-dom/pull/135, and they tell me it should fix this. Can do a patch soon.
I noticed this while reading through the code, the conditional checks on https://github.com/elm/virtual-dom/blob/master/src/Elm/Kernel/VirtualDom.js#L496 will always return
true
Any string will pass
key !== 'value' || key !== 'checked'