From 00f940d979e9674f98b6af93832092ecbc3c1603 Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Tue, 7 Apr 2020 19:24:34 +0100 Subject: [PATCH] Fix FormFinder callbacks for missing element_text element_text added in: 51a06d8a ("Remove home-cooked htmlparser and use BeautifulSoup", 2019-07-22) --- linkcheck/htmlutil/formsearch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linkcheck/htmlutil/formsearch.py b/linkcheck/htmlutil/formsearch.py index 104ef692..567dabde 100644 --- a/linkcheck/htmlutil/formsearch.py +++ b/linkcheck/htmlutil/formsearch.py @@ -50,7 +50,7 @@ class FormFinder(object): self.forms = [] self.form = None - def start_element(self, tag, attrs): + def start_element(self, tag, attrs, element_text=None): """Does nothing, override in a subclass.""" if tag == u'form': if u'action' in attrs: @@ -69,10 +69,10 @@ class FormFinder(object): log.warn(LOG_CHECK, "formless input´%s" % attrs) pass - def start_end_element(self, tag, attrs): + def start_end_element(self, tag, attrs, element_text=None): """Delegate a combined start/end element (eg. ) to the start_element method. Ignore the end element part.""" - self.start_element(tag, attrs) + self.start_element(tag, attrs, element_text) def end_element(self, tag): """search for ending form values."""