-
Notifications
You must be signed in to change notification settings - Fork 115
jQuery UI Css Link incorrect in the view source example code #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
When the protocol is missing, it should take the protocol of whatever page it's used in. Do you have a link to a page where it isn't working? What does devtools show you on the network panel? |
It's just part of the In draggable:
|
If you open the file locally it will put file:// there and as such will not load the css file. |
Where is the "view source example code"? Do you have a link to it? There are a lot of pages and I'm still not sure which page it is based on the description above. |
I think it's about the demos. E.g. the page https://jqueryui.com/draggable/ loads the URL https://jqueryui.com/resources/demos/draggable/default.html in an iframe and that one uses protocol-relative URLs as mentioned above. While those URLs are valid, in 2023 it makes sense to just use HTTPS everywhere. I'm not sure where exactly this is defined, though. |
It looks like it may be defined here: Lines 221 to 223 in 1d19439
|
I transferred the issue to the correct repository. |
This was fixed in 7945c96. Also, see a duplicate issue here: jquery/jquery-ui#2183 |
Currently the code is like so:
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css">
It is missing
https:
so it is screwing up with anyone trying to copy and paste the code, the resource isn't loading properly.The text was updated successfully, but these errors were encountered: