keithclark / selectivizr

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

Avoid error when stylesheet doesn't have an href #63

Closed eric1234 closed 5 years ago

eric1234 commented 11 years ago

I am getting an error when the href on a stylesheet is null. The current code is checking for an empty string but not null. This patch fixes this.

For an example use case I am getting null on the href via the stylesheet tag generated by the htm5shiv.js which adds support for HTML5 elements to older versions of IE.

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?