bug fix in DOM serialisation, Text was assumed to be HTMLElement