From 82acf609516e94c2825a1b7e2af7106232bf9c8e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 24 May 2015 17:51:32 -0400 Subject: peniquitous.js: Target "search"-type inputs Apparently Wikipedia uses `input[type="search"]`. Might as well include it since that's probably a common type of input for this use case. --- peniquitous.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/peniquitous.js b/peniquitous.js index 83aebf2..746809d 100644 --- a/peniquitous.js +++ b/peniquitous.js @@ -9,10 +9,9 @@ // Additional types: // * email // * number - // * search // * tel // * url - var all_inputs = document.querySelectorAll('input[type="text"]'); + var all_inputs = document.querySelectorAll('input[type="text"], input[type="search"]'); for (var i = 0; i < all_inputs.length; i++) { all_inputs[i].addEventListener('keyup', function(e) { -- cgit v1.2.3