Problem in clonning an element

Raghu
02-18-2005, 12:06 AM
Hi,
In the following snippet I copy an element to node. then I create attribute for clone is produce error. Please give me your suggestions

var clone = path.cloneNode(false);
var markerAttribute = clone.createAttribute('marker-end');
markerAttribute.setValue("#arrowHead");
clone.setAttributeNode(markerAttribute);

:cry:

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum