Use the statically typed DOM API.