def _element_charfix(self, element, charcount):
        """Updates the start and end attributes by charcount for the element."""
        element.start += charcount
        element.docstart += charcount
        element.end += charcount
        element.docend += charcount