You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
snabbdom/test
Andre Staltz 4b4a34ad0f Fix toVNode() for comment nodes, lacking some fields
Comment nodes when converted to VNode were lacking vnode.data and
vnode.elm, which in turn would break use cases with modules such as the
style module (Which assumed vnode.data to be defined). Since toVNode is
used as an initial step (e.g. for server-side rendered content), there
is no reason to not provide vnode.elm since that vnode may be used as
the "prevVNode" during patch. Also, because comment vnodes have the '!'
sel, most logic in snabbdom that detects a truthy sel will also assume a
truthy data field. It is easier to build the comment vnode with those
fields than to modify all the logic elsewhere in snabbdom.
8 years ago
..
attachto.js Migrate from CommonJS modules to ES2015 modules 8 years ago
attributes.js Set boolean attributes correctly according to spec 8 years ago
core.js Use elm.setAttribute('class', ...) instead of elm.className = ... to make it work in SVGs 8 years ago
dataset.js [perf-optimization] skip unnecessary work in modules that can support memoization of the data structure consumed by them 8 years ago
eventlisteners.js Migrate from CommonJS modules to ES2015 modules 8 years ago
htmldomapi.js Performance improvement for attribute patching: (#257) 8 years ago
index.js added test 8 years ago
style.js Fix toVNode() for comment nodes, lacking some fields 8 years ago
thunk.js Bugfix: thunk function called two times 8 years ago