Backslash in links before filename

1

I was posting an answer to a question from a user of this site when I noticed that in HTML there were image tags with src containing a backslash before the file name

<img src="galerias
<img src="galerias%pre%1.jpg" id="fotos">
1.jpg" id="fotos">

I confess that it was the first time I saw something of this type and I did not find any publication that gave me any explanation about this type of address in the src attribute.

Is this supported? Any documentation about it?

    
asked by anonymous 02.05.2017 / 12:55

1 answer

1

From what I read in the HTML Standard documentation, the src attribute of the element must be a "non-empty URL potentially surrounded by valid spaces" (valid non-empty URL potentially surrounded by spaces).

And what is a valid non-empty URL potentially surrounded by spaces?

This is a valid non-empty URL after the white space has been removed. Which brings us to the next question:

What is a valid non-empty URL?

This is a valid URL string that is not empty. So ....

What is a valid URL string?

Now I swear I'll summarize it because it has a bit of detail. It can be relative or absolute. And in both cases and in all scenarios, the documentation I have read always quotes the character U + 002F (/).

So the conclusion is that it can probably work because the browser at the time of interpreting the URL does the fix automatically, but it is not the specification.

documentation link

    
02.05.2017 / 19:35