s106mo
s106mo

Reputation: 1253

Space in HTML file name affects JS behavior in Chrome

I'm using Control.Tabs (a JavaScript library that uses Prototype) for generating (local) HTML reports. However, if the path contains a space, the tabbing does not work in Chrome (e.g., "C:\test\tab.html" works, but "C:\test 2\tab.html" does not). How does the space affect the JS behavior?

Upvotes: 1

Views: 520

Answers (1)

Alexander Pavlov
Alexander Pavlov

Reputation: 32306

If you are linking to tabs in other pages, I believe it affects the URL handling. Spaces must be replaced by +s (See the RFC).

Upvotes: 1

Related Questions