Last active
December 19, 2015 17:09
-
-
Save rblalock/5989085 to your computer and use it in GitHub Desktop.
Weird bug in Android web view around querySelectorALL(); - http://beautyindesign.com/blog/stumped-android-webview-queryselectorall/
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
// Selecting based on total document | |
var selectedUnits = document.querySelectorAll("[data-selected='selected']"); |
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
// Selecting based on body children | |
var selectedUnits = document.body.querySelectorAll("[data-selected='selected']"); |
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
// Selecting all just inside the unit grid area. | |
var selectedUnits = unitGrid.querySelectorAll("[data-selected='selected']"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment