title: querySelector search immediate children
body: <p>I have some jquery-like function:</p>
  
  <pre><code>function(elem) {
      return $('&gt; someselector', elem);
  };
  </code></pre>
  
  <p>The question is how can i do the same with <code>querySelector()</code>?</p>
  
  <p>The problem is <code>&gt;</code> selector in <code>querySelector()</code> requires parent to be explicitly specified. Is there any workaround?</p>