src attribute of script tag

François Revol revol at
Fri Feb 15 22:46:56 GMT 2013

On 15/02/2013 15:56, John Rickman Iyonix wrote:
> Chris Gransden  wrote
>> In article <fee3641e53.iyojohn at>,
>>    John Rickman Iyonix <rickman at> wrote:
>>> I have developed some web pages using javascript. NetSurf successfully
>>> handles the code and does what is required.
>>> However, the same javascript statements put into an external file do
>>> not work. It seems this is an html problem rather than JS as the
>>> <script src="mycode.js> </script> statement appears to be ignored and
>>> the code is not loaded.
>>> Is this a bug or a case of function yet to be implemented?
>>> At the moment lack of ablility to load external source means that
>>> JavaScript libraries, eg jQuery cannot be accessed by NetSurf
>> I had the same problem until I added an entry for 'applicaton/javascript'
>> to the MimeMap file.
> Thanks Chris,
> That is brilliant!

Should we add this to the platform's hardcoded mime tables ?
(beos/filetype.cpp, ...)

(/me wonders why it's not text/javascript but eh)


More information about the netsurf-dev mailing list