--- parser3/src/classes/xdoc.C 2015/10/26 01:21:55 1.183 +++ parser3/src/classes/xdoc.C 2016/04/11 22:58:57 1.186 @@ -28,7 +28,7 @@ #include "xnode.h" #include "pa_charsets.h" -volatile const char * IDENT_XDOC_C="$Id: xdoc.C,v 1.183 2015/10/26 01:21:55 moko Exp $"; +volatile const char * IDENT_XDOC_C="$Id: xdoc.C,v 1.186 2016/04/11 22:58:57 moko Exp $"; // defines @@ -47,7 +47,8 @@ public: // global variable -DECLARE_CLASS_VAR(xdoc, new MXdoc, 0); +DECLARE_CLASS_VAR(xnode, new MXnode); // must be here as Xdoc is inherited from Xnode and should be inited before +DECLARE_CLASS_VAR(xdoc, new MXdoc); // helper classes @@ -722,7 +723,9 @@ static void _transform(Request& r, Metho // constructor /// @test how to create empty type html? -MXdoc::MXdoc(): MXnode(XDOC_CLASS_NAME, xnode_class) { +MXdoc::MXdoc(): MXnode(XDOC_CLASS_NAME) { + set_base(xnode_class); + /// DOM1 // Element createElement(in DOMString tagName) raises(DOMException); @@ -792,6 +795,7 @@ MXdoc::MXdoc(): MXnode(XDOC_CLASS_NAME, // global variable -DECLARE_CLASS_VAR(xdoc, 0, 0); // fictive +DECLARE_CLASS_VAR(xnode, 0); // fictive +DECLARE_CLASS_VAR(xdoc, 0); // fictive #endif