We've been trying to get morphdom working with a marko-vdom virtual dom object on the server side, but unfortunately all of our many attempts have failed. Our goal is to get a diffing dom working successfully on the server side.
It seems that morphdom is always looking for a global document object. For instance, line 6 of morphdom.js:
We've been trying to get morphdom working with a marko-vdom virtual dom object on the server side, but unfortunately all of our many attempts have failed. Our goal is to get a diffing dom working successfully on the server side.
It seems that morphdom is always looking for a global document object. For instance, line 6 of morphdom.js:
var doc = typeof document === 'undefined' ? undefined : document;
But we can't figure out how to make marko-vdom provide such a global document.
Does anyone have a working example of using morphdom successfully with mark-vdom on the server side? We'd really appreciate your help!