From 2dbbef724cf290d7e2e116ec0441464ce870d1aa Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 4 Dec 2015 12:21:05 -0600 Subject: [PATCH] DIV.elements fails when searching for an attribute with an integer value #1074 --- gluon/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/html.py b/gluon/html.py index acea5174..5c44f4fb 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -1138,7 +1138,7 @@ class DIV(XmlComponent): for (key, value) in kargs.iteritems(): if key not in ['first_only', 'replace', 'find_text']: if isinstance(value, (str, int)): - if self[key] != str(value): + if str(self[key]) != str(value): check = False elif key in self.attributes: if not value.search(str(self[key])):