[Webkit-unassigned] [Bug 10932] New: result of appendchild is not visible

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Tue Sep 19 04:10:53 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=10932

           Summary: result of appendchild is not visible
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh Intel
               URL: http://www.dernierage.com/test_a.svg
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: major
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: mc at xeolia.com


When using the appendchild function, the objects created are effectively in the
tree, they are visible when clicking on "inspect element" menu, but they are
not shown in the SVG canvas in webkit.

Adobe, Firefox and Opera's implementations are working, but not webkit's one.

Here is the main code of the url submitted below :

<svg width="686.76" height="621" viewBox="0 0 595.275590551 538.582677165"
onload='dessin(evt)' onmousemove=" GetTrueCoords(evt); ShowTooltip(evt, true)"
onmouseout="ShowTooltip(evt, false)" version="1.1"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMid meet" zoomAndPan="magnify">
<script><![CDATA[
var svgdoc,root;
function efface(evt){
        objet=evt.target;
        root.removeChild(objet);
}

function dessin(evt){
        svgdoc=evt.target.ownerDocument;
        root=evt.target;
        for (i=0;i<8;i++){
                node=svgdoc.createElement('rect');
                node.setAttribute('x',10+i*50);node.setAttribute('y','150');
               
node.setAttribute('width','30');node.setAttribute('height','150');
                node.setAttribute('style','fill:red');
                node.addEventListener('click',efface,false);
                root.appendChild(node);
        }
}
]]></script>


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list