Skip to content

Instantly share code, notes, and snippets.

@eduardo-matos
Created February 14, 2014 09:48
Show Gist options
  • Select an option

  • Save eduardo-matos/8998459 to your computer and use it in GitHub Desktop.

Select an option

Save eduardo-matos/8998459 to your computer and use it in GitHub Desktop.
Dojo query with Sizzle selector engine
<script src="/js/dojo.js"
data-dojo-config="'selectorEngine': 'sizzle/sizzle', 'packages': [{'name': 'sizzle', 'location': 'https://rawgithub.com/jquery/sizzle/master/dist/'}]" ></script>
<script src="my.js"></script>
require(['dojo/query'], function (query) {
console.log(query('html').query('body'));
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment