From ec6dc09f261b1810396d7a6d69e8d883dff6657d Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 7 Dec 2010 05:22:20 +0100 Subject: [PATCH 1/1] browser: support filter form without classList Minor fixes to make it work in Epiphany. --- searchlocal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/searchlocal.js b/searchlocal.js index 2993a4a..f0036a6 100644 --- a/searchlocal.js +++ b/searchlocal.js @@ -12,6 +12,7 @@ function filtertable(query, action) { break; case 'filter': rows[i].style.display = keep ? '' : 'none'; + if (!Element.prototype.hasOwnProperty('classList')) continue; // continue default: // reset rows[i].classList.remove('focus'); @@ -34,7 +35,7 @@ function prependsearch(target) { target.parentNode.insertBefore(newelement( 'form', { id: 'search', - class: 'aside', + 'class': 'aside', onsubmit: "filtertable(this.q.value, 'filter'); this.q.value = ''; return false", }, [ -- 2.30.0