From 81cc6acd5996cd30f4a246a610d0e5a9ef697b3d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 3 Aug 2004 00:56:29 +0000 Subject: DOMC preliminary testing and work. --- src/xmlfixups.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/xmlfixups.cpp') diff --git a/src/xmlfixups.cpp b/src/xmlfixups.cpp index d9bdb0a..eb6fcb7 100644 --- a/src/xmlfixups.cpp +++ b/src/xmlfixups.cpp @@ -503,10 +503,8 @@ void XmlFixups::runPassTwo(const DOM::Document& doc) continue; // Current element no longer valid } - continue; - // Change id attribute on fonts to name - /* else */ if(haveFonts && name == kElFont) + if(haveFonts && name == kElFont) { if(el.hasAttribute(kAtId)) { @@ -779,7 +777,6 @@ void XmlFixups::fixBlock(const DOM::Document& doc, DOM::Element& block) while(block.hasChildNodes()) el.appendChild(block.removeChild(block.getFirstChild())); - // parent.replaceChild(el, block); - parent.appendChild(el); + parent.replaceChild(el, block); } } -- cgit v1.2.3