title: Javascript function document.createElement(tagName[, options]) doesn't work as intended
body: <p>I need to create <code>&lt;a href=&quot;http://someurl.com&quot;&gt;&lt;/a&gt;</code> element <strong>in one js code line</strong></p>
  <p>this doesn't work:</p>
  <p><code>var gg = document.createElement(&quot;a&quot;, {href : &quot;http://someurl.com&quot;})</code></p>
  <p>this result in: <code>&lt;a is=&quot;[object Object]&quot;&gt;&lt;/a&gt;</code></p>
  <p>Thought MDN says:
  <code>var element = document.createElement(tagName[, options]);</code></p>
  <p>options is an optional ElementCreationOptions object. If this object is defined and has an <code>is</code> property, the <code>is</code> attribute of the created element is initalized with the value of this property. If the object has no <code>is</code> property, the value is null.
  <a href="https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement" rel="noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement</a></p>
  <p>is this ElementCreationOptions object some sort of exotic object? I tried many various combinations around this object but nothing works and always in results i see that strange <code>is</code> property! I also found it in specification: <a href="https://www.w3.org/TR/custom-elements/#attr-is" rel="noreferrer">https://www.w3.org/TR/custom-elements/#attr-is</a> but no idea how it actually works.</p>
  <p>ps:
  this doesn't work either:</p>
  <p><code>var gg = document.createElement(&quot;a&quot;).setAttribute(&quot;href&quot; , &quot;someurl.com&quot;)</code></p>
  <p>result in undefined.</p>