Instantly share code, notes, and snippets.

Embed
What would you like to do?
(function(x) {
var i, current;
for (i in x) {
current = x[i];
if (current.type == "text") {
current.setAttribute("x-webkit-speech", "x-webkit-speech"); current.setAttribute("speech", "speech");
}
}
})(document.getElementsByTagName("input"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment