This fixes an error that occurs when attempting to create a virtual-dom tree from HTML containing data--prefixed attributes with hyphens in their names. Without this, the dataset passed in to virtual-dom has invalid names (e.g. element-uid instead of elementUid) and Node or the browser fails to set the dataset properties.
This fixes an error that occurs when attempting to create a virtual-dom tree from HTML containing
data-
-prefixed attributes with hyphens in their names. Without this, the dataset passed in to virtual-dom has invalid names (e.g.element-uid
instead ofelementUid
) and Node or the browser fails to set the dataset properties.