#31 ✓resolved
fiann

URL error loading embedded scripts

Reported by fiann | February 6th, 2009 @ 06:49 AM | in 1.0 Release

I was unable to load scripts embedded in the html file, due to an error in the way the URLs are resolved.

For example, running the tests with "make test-rhino" produces this error:

Setting internal window.document
Loading scripts.
loading both script :jquery.js
js: Couldn't open URL "file:/Users/fiann/Code/Javascript/thatcher-env-js/test/index.html/..//jquery.js: java.io.FileNotFoundException: /Users/fiann/Code/Javascript/thatcher-env-js/test/index.html/../jquery.js (Not a directory)".

This is using Java 1.5 on OS X. Possibly other versions of Java can deal with index.html not being a directory.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

a javascript browser environment

People watching this ticket

Attachments

Pages