c-smile / sciter-sdk

Sciter is an embeddable HTML/CSS/scripting engine
http://sciter.com
Other
2.11k stars 224 forks source link

Non-URI compliant behavior #180

Closed SonnyX closed 3 years ago

SonnyX commented 4 years ago

https://stackoverflow.com/questions/3616795/what-is-the-difference-between-file-file-file afbeelding

c-smile commented 4 years ago

What's that?

SonnyX commented 4 years ago
file:// is the prefix for the file protocol

file:/// is the prefix for the file protocol, plus a leading / pointing to the root directory of the current drive (On Windows) or the overall root directory (On Linux / Unix). 

For some reason sciter does not like file:///C:/... on windows, even though that is how it is (and should be) used elsewhere. e.g. browsers.

c-smile commented 3 years ago

That's debatable.

First, C:/ on Windows is marker of FS root. And second, having this url file://foo.bar what would be the used path ?

SonnyX commented 3 years ago

That would depend on the Working Directory/pwd in my assumption, thus it being a relative path instead. However for the leading /, I'm merely stating how I have seen other libraries and applications implement the paths for the file protocol. I'll close this since I feel like this is a "Won't fix"