W
W
weranda2017-11-25 11:52:31
Standardization
weranda, 2017-11-25 11:52:31

Is it possible to change the standard link in SVG (SVG sprite) from http to https?

Hello
Here, Toaster has an SVG sprite:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" display="none" height="0" version="1.1" viewBox="0 0 1008 128" width="0">
  <defs>
    <symbol id="icon_1">...</symbol>
    ...
    <symbol id="icon_n">...</symbol>
  </defs>
</svg>

You see, there are links to standards:
- www.w3.org/2000/svg
- www.w3.org/1999/xlink
SVG can be added to the page in different ways. In one case, links to the standards will be in the sprite (like on the Toaster), and in the other right on the page.
It became interesting to me - what if the link to the standard is registered via https, and not via http, what will be the reaction of browsers, including a number of older versions of browsers, is it possible / necessary to do this. What do you think/know about it?
By opening any of the links of the standard in the browser, we will get (we will be redirected) to a secure connection. Logically, it turns out that if the site works via SSL, then all loaded data on the page (scripts, images, other files) should also be loaded via SSL/https. In this case, I do not know what to do - leave http in the link to the standard, or still add "s". Not knowing the mechanics with confidence, I can not decide on a choice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zorca, 2017-11-25
@zorca

I think a metalink to a standard and a link to content are not the same thing. Changing http to https will not affect the "mixing" of content in any way. In short, you can change, you can not. Absolutely all the same. Example on Bitbucket in the upper left corner.
You can completely remove these links, nothing terrible will happen, this is how the SVG is prepared for size reduction. An example on Github in the upper left corner.
I would just remove the links to the standards.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question