Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-749

Can't replace top level <svg> tag in DOM

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: SVG DOM
    • Labels:
      None
    • Environment:
      Operating System: Linux
      Platform: All

      Description

      Batik's DOM implementation doesn't seem to support replacing the top level <svg>
      node in a document. I've tried two methods:
      (a) using replaceChild()
      (b) using removeChild(), then appendChild()

      When I try to do this, the image just disappears (goes blank).

      I'll attach a test Java program that demonstrates the problem.

        Attachments

        1. ReplaceChild.java
          9 kB
          Archie Cobbs

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              archie Archie Cobbs
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: