Generate a id for a element.

        :param element: The element.
        :type element: hatemile.util.html.HTMLDOMElement

def generate_id(self, element):
        """
        Generate a id for a element.

        :param element: The element.
        :type element: hatemile.util.html.HTMLDOMElement
        """

        if not element.has_attribute('id'):
            element.set_attribute('id', self.prefix_id + str(self.count))
            self.count = self.count + 1