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

Non-bubbling DOM events are bubbling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Resolution: Unresolved
    • 1.7
    • None
    • SVG DOM
    • None
    • Operating System: Linux
      Platform: PC

    Description

      The DOM specification for mutation events:
      http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-eventgroupings-mutationevents

      specifies that the DOMNodeRemovedFromDocument and DOMNodeInsertedIntoDocument
      mutation events, unlike the others, should NOT bubble.

      However, Batik is bubbling these events.

      Example of an event I received in a test program:

      event=org.apache.batik.dom.events.DOMMutationEvent@ff45de
      target=org.apache.batik.dom.svg.SVGOMSVGElement@6210fb
      currentTarget=org.apache.batik.dom.svg.SVGOMGElement@aa37a6 phase=3 bubbles=true
      type=DOMNodeRemovedFromDocument

      Note that the "target" is different from the "currentTarget" and that
      "bubbles=true". Both of these things should not happen for a non-bubbling event.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: