keithclark / selectivizr

selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.
1.71k stars 247 forks source link

Make getProtocolAndHost work on URLs that doesn't end with `/` #31

Open shesek opened 12 years ago

shesek commented 12 years ago

getProtocolAndHost doesn't work properly when the <base href> is set without a trailing / (e.g. https://github.com). I know its technically not correct for URLs to have no path at all, but this caused me some issues because of the way WordPress stores the base URL (see the last paragraph here [the rest of the post might be interesting too, perhaps it could be solved in Selectivizr?]).

corysimmons commented 8 years ago

@keithclark disappeared so I'm going to try and maintain this project at https://github.com/corysimmons/selectivizr2

Would you please reopen/rebase your PR over there?