Associate the data cell with header cell of row.

        :param element: The table body or table footer.
        :type element: hatemile.util.html.htmldomelement.HTMLDOMElement

def _associate_data_cells_with_header_cells_of_row(self, element):
        """
        Associate the data cell with header cell of row.

        :param element: The table body or table footer.
        :type element: hatemile.util.html.htmldomelement.HTMLDOMElement
        """

        table = self._get_model_table(element)
        for row in table:
            headers_ids = []
            for cell in row:
                if cell.get_tag_name() == 'TH':
                    self.id_generator.generate_id(cell)
                    headers_ids.append(cell.get_attribute('id'))

                    cell.set_attribute('scope', 'row')
            if bool(headers_ids):
                for cell in row:
                    if cell.get_tag_name() == 'TD':
                        headers = cell.get_attribute('headers')
                        for header_id in headers_ids:
                            headers = CommonFunctions.increase_in_list(
                                headers,
                                header_id
                            )
                        cell.set_attribute('headers', headers)