Loading ...
Sorry, an error occurred while loading the content.

Re: [svg-developers] Re: Reporting a bug for Firefox, Opera and IE --[was RE: [svg-developers

Expand Messages
  • ddailey
    Yes, indeed! Thanks for the catch. I ve fixed it now at http://srufaculty.sru.edu/david.dailey/svg/experiments/replicateNS.svg -- now just Opera misbehaves (by
    Message 1 of 2 , Nov 21, 2009
    • 0 Attachment
      Yes, indeed! Thanks for the catch.

      I've fixed it now at http://srufaculty.sru.edu/david.dailey/svg/experiments/replicateNS.svg -- now just Opera misbehaves (by drawing the text objects but making them invisible (one can verify they are there by clicking on and removing the ellipses).
      Though FF/Safari/Chrome disagree with IE about when to display the alert().

      The older version is still visible at http://srufaculty.sru.edu/david.dailey/svg/experiments/replicateNSold.svg and still crashes both FF and IE -- which it seems like it should no do despite the namespace error.

      thanks Ken,
      David
      ----- Original Message -----
      From: Ken Stacey
      To: svg-developers@yahoogroups.com
      Sent: Saturday, November 21, 2009 11:25 AM
      Subject: [svg-developers] Re: Reporting a bug for Firefox, Opera and IE --[was RE: [svg-developers



      Hi David,

      Try modifying your add() function to use getElementsByTagNameNS instead
      of getElementsByTagName.

      function add(node, attname, attvalue){
      var N=node.cloneNode("true")
      var R=N.getElementsByTagNameNS(ddns, "replicate")
      for (var i=R.length-1;i>-1;i--) N.removeChild(R.item(i))
      N.setAttributeNS(null,attname, attvalue)
      root.appendChild(N)
      }

      Ken




      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.