title: Firebreath - NPAPI - getElementsByName not working
body: <p>I'm trying to call javascript native method <code>getElementsByName</code> to retrieve the list of all elements with the same name (name="").</p>
  
  <p>Here is the code I'm using with Internet Explorer:</p>
  
  <pre><code>std::vector&lt;FB::JSObjectPtr&gt; nameList = DOMdoc-&gt;callMethod&lt;std::vector&lt;FB::JSObjectPtr&gt; &gt;("getElementsByName", FB::variant_list_of("name1");
  </code></pre>
  
  <p>No result is returned. By executing directly the method in javascript, I have the right number of items:</p>
  
  <pre><code>document.getElementsByName("name1")
  </code></pre>
  
  <p>I also tried to use directly the getElementById which works but returns only one element:</p>
  
  <pre><code>DOMdoc-&gt;getElementById("name1")-&gt;getJSObject();
  </code></pre>
  
  <p>Unfortunately I need to retrieve the list of elements for a radiobutton for exemple:</p>
  
  <pre><code>&lt;input type="radio" name="name1" value="value1"&gt;Radio 1&lt;br/&gt;
  &lt;input type="radio" name="name1" value="value2"&gt;Radio 2&lt;br/&gt;
  &lt;input type="radio" name="name1" value="value3"&gt;Radio 3&lt;br/&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated,</p>
  
  <p>Thanks.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Just tried with getElementsByTagName without more success:</p>
  
  <pre><code>nameList = DOMdoc-&gt;callMethod&lt;std::vector&lt;FB::JSObjectPtr&gt; &gt;("getElementsByTagName", FB::variant_list_of("name1"));
  </code></pre>