Fixed cross-browser  DOM