Add port and protocol to HTMLAnchorElement.