Successfully created container element for type “ol”.
emscripten::val parent = document.call<emscripten::val>("createElement",std::string("ol"));
· Child element creation is also successful for element type “li”
emscripten::val chld = document.call<emscripten::val>("createElement",std::string("li"));
· But adding child to parent is not happening.
parent.call<void>("appendChild", chld);
//parent.call<void>("append", chldElement);
· But the same child elements are successfully get added to container.
if (!container.isUndefined())container.call<void>("appendChild", chld);
please suggest what is wrong here.