Add name attribut to Form object

This commit is contained in:
Florent 2014-04-01 12:33:27 +02:00
commit 839834edf2

View file

@ -376,6 +376,7 @@ class Form(OrderedDict):
self.el = el
self.method = el.attrib.get('method', 'GET')
self.url = el.attrib.get('action', page.url)
self.name = el.attrib.get('name', '')
for inp in el.xpath('.//input | .//select | .//textarea'):
try: