Closed matthewp closed 9 years ago
hmm im not sure -- try the hg.app(document.body, app, render, opts)
signature?
Same result.
if you leave out initialTree
https://github.com/Raynos/mercury/blob/master/examples/server-rendering/browser.js#L32 does it work?
if so maybe vdom-virtualize
needs to be in sync with mercury/node_modules/vdom
This is probably a bug in vdom-virtualize. There was an issue about contentEditable
on virtual-dom as well.
Actually this is a bug in virtual-dom.
Great, will track there then, thanks.
This happened when I upgraded from 12.0 to 14.0.
My code is basically the same as shown here: https://github.com/Raynos/mercury/blob/master/examples/server-rendering/browser.js#L28
If
targetElem
has the same tagName as the element returns by render you get the exception:The error occurs here: https://github.com/Matt-Esch/virtual-dom/blob/master/vdom/apply-properties.js#L43
It attempts to set node['contentEditable'] = '' which I guess is invalid so the browser throws.
Not sure what caused this error to happen. I'm not using contenteditable, that must be the default value in the browser and virtual-dom is mistakenly diffing it. What is the proper fix for this? Should I file in virtual-dom?