Jak utworzyć element SVG z JavaScript? Próbowałem:Utwórz tag SVG z JavaScript
var svg = document.createElement('SVG');
svg.setAttribute('style', 'border: 1px solid black');
svg.setAttribute('width', '600');
svg.setAttribute('height', '250');
svg.setAttribute('version', '1.1');
svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
document.body.appendChild(svg);
Jednak tworzy element SVG o zerowej szerokości i zerowej wysokości.
co przeglądarka robisz to z? –