Last active
December 20, 2015 08:49
-
-
Save antocap/6103131 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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