DOM element creation should be overrideable