Use getElementsByTagName instead of propagating attributes