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.
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 | 8 years ago | |
attributes.js | 8 years ago | |
core.js | 8 years ago | |
dataset.js | 8 years ago | |
eventlisteners.js | 8 years ago | |
htmldomapi.js | 8 years ago | |
index.js | 8 years ago | |
style.js | 8 years ago | |
thunk.js | 8 years ago |