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

Non-bubbling DOM events are bubbling

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: SVG DOM
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated: