From 6ac403eb4c344db1335574fc40a4a873c469bf8c Mon Sep 17 00:00:00 2001 From: keis Date: Sat, 14 May 2011 19:03:25 +0200 Subject: don't try to call select on select elements --- examples/data/scripts/follow.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/data/scripts/follow.js b/examples/data/scripts/follow.js index aa4ed72..5ecdcef 100644 --- a/examples/data/scripts/follow.js +++ b/examples/data/scripts/follow.js @@ -146,7 +146,8 @@ uzbl.follow.clickElem = function(item) { // otherwise fall through to a simulated mouseclick. } else if (item instanceof HTMLTextAreaElement || item instanceof HTMLSelectElement) { item.focus(); - item.select(); + if(typeof item.select != 'undefined') + item.select(); return "XXXEMIT_FORM_ACTIVEXXX"; } -- cgit v1.2.3