Skip to content

Instantly share code, notes, and snippets.

@antocap
Last active December 20, 2015 08:49
Show Gist options
  • Save antocap/6103131 to your computer and use it in GitHub Desktop.
Save antocap/6103131 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="http://cdn.app-framework-software.intel.com/2.0/appframework.min.js" type="text/javascript"></script>
</head>
<body>
<div id="x"/>
<div id="y"/>
<script>
console.log("Bug (selection of two ids does not work): "+$('#x,#y').length);
console.log("WorkAround 1 (space after comma): "+$('#x, #y').length);
console.log("WorkAround 2 (a dummy class): "+$('#x,#y,.dummy').length);
console.log("WorkAround 3 (use querySelectorAll): "+document.querySelectorAll("#x,#y").length);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment