Skip to content

Instantly share code, notes, and snippets.

@rblalock
Last active December 19, 2015 17:09
Show Gist options
  • Save rblalock/5989085 to your computer and use it in GitHub Desktop.
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/
// Selecting based on total document
var selectedUnits = document.querySelectorAll("[data-selected='selected']");
// Selecting based on body children
var selectedUnits = document.body.querySelectorAll("[data-selected='selected']");
// 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