diff options
author | Stef Walter <stef@memberwebs.com> | 2004-08-03 00:56:29 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-08-03 00:56:29 +0000 |
commit | 81cc6acd5996cd30f4a246a610d0e5a9ef697b3d (patch) | |
tree | 4b7e68a962a3f8706977edb656d0f323b7a758b8 /src/xmlfixups.cpp | |
parent | 740d8a6bcb6521e188361befa7f5636c880bf63b (diff) |
DOMC preliminary testing and work.
Diffstat (limited to 'src/xmlfixups.cpp')
-rw-r--r-- | src/xmlfixups.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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); } } |