Is it possible to have an absolute href attribute with no scheme?
If you don't include the URI scheme (http://, https://, //, etc) then the browser will assume it to be a relative URL.
You should be aware of scheme-relative URLs like //www.google.com for your script.  In short your should look for a double forward slash // to figure out whether or not a URL will be treated as relative or not.
I'm trying to find a way to test whether a URL is absolute or relative in Python. In the href attribute of an HTML tag, is the lack of a scheme (e.g. http, ftp, etc.) sufficient to mark a URL as relative, or is it possible to have an absolute URL as a href attribute without explicitly specifying the scheme (e.g. 'www.google.com')? I'm getting the scheme by using urlparse.urlparse('some url').scheme.