assaf/zombie — Issue #247: issues loading scripts with the file protocol
Author: AndrewSwerlick
Created: 2012-01-04 04:34:27+00:00
State: open

I'm having some trouble with zombie.js not loading scripts in script tags when I browse to my html using the file:// protocol. I'm using relative references in my script tags, and loading the page with browser.visit("file://" + path_to_page, {debug:true}, callback);

The debug output shows my html page being retrieved, but no calls to load the scripts defined in the script tags. Calling browser.dump() in the callback shows that the script tag is in the document.

Here's the html from browser.dump();

I've double checked the relative path to src script. I've also found that if I use an absolute url with the file:// protocol for the src attribute then the script is loaded, though this workaround fails once require.js starts trying to load any other dependencies