Respond
Respond copied to clipboard
Ran into another Firefox 3.0 bug with the cross-domain proxy.
FX 3.0 spits out an error if link.styleSheet is undefined. Checking if undefined and then setting to empty object before rawCssText gets set.
Sorry, I'm a little confused. Are you trying to use the proxy with FF3, or is FF3 choking on this code regardless?
I believe it only happens when using the proxy (since that JS file shouldn't be loaded unless using the proxy). Not able to test that in the particular use-case I had, as the proxy was needed for respond.js to work at all (since we were doing cross-domain css files).
Two options here:
- Go this route, patch FF3 bug.
- Take care of this and further incompatibilities by wrapping respond.js in an IE conditional.
@scottjehl, @paulirish, any reason not to use a conditional?
If you wrap respond.js in a conditional, won't that keep it from being used for other browsers that don't support media queries that aren't IE (like firefox 3.0 and below, for example)?