    def is_form(self):
        """Return whether this box is a form element."""
        if self.element is None:
            return False
        return self.element.tag == 'form'
Return whether this box is a form element.
weasyprint/formatting_structure/boxes.py