Refactor set the input so URL's constructor and href's attribute setter don't duplicate a bunch of things