Use new Selectors primitive http://lists.w3.org/Archives/Public/www-dom/2014JulSep/thread.html#msg62