diff --git a/gluon/html.py b/gluon/html.py
index 00902896..acea5174 100644
--- a/gluon/html.py
+++ b/gluon/html.py
@@ -784,6 +784,9 @@ class DIV(XmlComponent):
else:
return self.components[i]
+ def get(self, i):
+ return self.attributes.get(i)
+
def __setitem__(self, i, value):
"""
Sets attribute with name 'i' or component #i.