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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.7
    • None
    • SVG DOM
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: