https://issues.apache.org/bugzilla/show_bug.cgi?id=45883

           Summary: Change to style CDATA not detected
           Product: Batik
           Version: 1.7
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SVG DOM
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=22632)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22632)
Bug demonstration - square should change colour when clicked.

Changes to the CDATA of a style element are not reflected in a document loaded
in a JSVGComponent.

To reproduce: Load the attached document cdata.svg and click on the square. 
This will run a script to replace the CDATA content of a style element.

Observed: No change.

Expected: The square should alternate between red and blue when clicked.

Workaround:  Replace the entire style element instead of its contents.

Analysis:  I think this is a simple copy-and-paste-o in
SVGOMDocument.DOMCharacterDataModifiedListenerWrapper, which forwards its event
using the subTreeModified(Node) method instead of characterDataModified(Node),
which is what I would have expected.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to