Can someone please explain why the basic test.svg below works as expected in IE6 (ASV plugin) .. but not in Firefox 1.5.
On clicking the red box the box fill should change to null (black) and, on clicking a second time, the alert message pops up .. "This element doesn't have a fill attribute." In Firefox 1.5 the onclick works but the box fill stays at "red" (even though a null fill attribute is detected on second click). Thanks DL _________________________________________________ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100" height="100"> <script type="text/ecmascript"> <![CDATA[ function removeFill(evt) { var element = evt.target; if (element.hasAttributeNS(null,"fill")) { element.removeAttributeNS(null,"fill"); } else { alert("This element doesn't have a fill attribute."); } } ]]> </script> <rect x="20" y="20" width="60" height="60" fill="red" onclick="removeFill(evt)" /> </svg> [Non-text portions of this message have been removed] ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

