#NEWLINE# def toString( elem ) : #NEWLINE# #INDENT# temp = elem . cloneNode ( True ) #NEWLINE# tempDiv = createDiv ( ) #NEWLINE# tempDiv . appendChild ( temp ) #NEWLINE# outer = getInnerHTML ( elem ) #NEWLINE# setInnerHTML ( temp , '' ) #NEWLINE# return outer