title: D3: Cannot append simple path to svg container
body: <p>I am not succeding in appending a path on a simple svg container.
  It considers my "path" element as a text instead.</p>
  
  <p>Here is my code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>// Create the SVG
  var tracer = {};
  tracer.$container = document.getElementById('container');
  
  tracer.$svg = $('&lt;svg class="svg-d3-table" style="width:100%; height:100%"&gt;');
  tracer.$container.append(tracer.$svg);
  
  // Specify the path points
  var pathInfo = [{x:0, y:60},
                  {x:50, y:110},
                  {x:90, y:70},
                  {x:140, y:100}];
  
  // Specify the function for generating path data             
  var pathLine = d3.line()
                   .x(function(d){return d.x;})
                   .y(function(d){return d.y;})
                   .curve(d3.curveBasis); 
  
  // Append path
  tracer.$svg.append("path")
             .attr("d", pathLine(pathInfo))
             .attr("stroke", "white")
             .attr("stroke-width", 8)
             .attr("fill", "none");</code></pre>
  </div>
  </div>
  </p>
  
  <p>Instead of having a new path element as </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;path d="M314,352L314,352C314,352,314,352,..."&gt;&lt;/path&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>It comes with the following:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;svg class="svg-d3-table" style="..." d="M0,60L8.3,68.3.7,..."&gt;path&lt;/svg&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>What am I missing?</p>
  
  <p>PS: Sorry, I come from c++ and can be struggled with some very basic js operations.</p>
  
  <p>Thank you very much.
  Kind Regards.</p>