patchAttrs updates a DOM element’s ordinary attributes so they match the properties of a new virtual node. It receives the old and new attribute objects after class, style, and event properties are separated. section 8.2.5
Attribute reconciliation
Given old and new attribute objects, patchAttrs removes attributes no longer present and applies values for newly added or changed attributes. Classes, styles, and event handlers follow separate patching functions. section 8.2.5
