1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-27 05:25:45 +01:00

Treat XUL Tree and TextBox elements as input elements.

This commit is contained in:
Kris Maglione
2010-12-28 22:54:36 -05:00
parent 2f701ac96a
commit eef79f2ba8
3 changed files with 22 additions and 21 deletions

View File

@@ -315,7 +315,7 @@ var Styles = Module("Styles", {
else if (/[\/:]/.test(filter))
function test(uri) uri.spec === filter;
else
function test(uri) { try { return uri.host === filter } catch (e) { return false } };
function test(uri) { try { return util.isSubdomain(uri.host, filter); } catch (e) { return false; } };
test.toString = function toString() filter;
if (arguments.length < 2)
return test;