make it possible to preserve some attributes on elements when switching
tabs