Set DOM property and attribute