I have the following HTML style tag
<style>
#loginBackground {
background-image: url(https://somedomain.com/services/storage?id=89174&type=picture&secret=ucWEYqzpQk8QCaHHp3lfDy5vRrISWwUgzGLnWaDD&timestamp=1478862301);
background-size: cover;
background-position: center center;
}
</style>
Chrome queries this url: https://somedomain.com/services/storage?id=89174&type=picture&secret=ucWEYqzpQk8QCaHHp3lfDy5vRrISWwUgzGLnWaDD&timestamp=1478862301
without turning &
in &
so the image is not displayed correctly.
Document doctype is <!DOCTYPE html>
so HTML 5.
Everything works fine if I don't encode these ampersands but according to this thread what's the de facto practice on ampersand encoding in html all ampersands must be encoded.
I've tried to use &
instead of &
, using double or single quotes around the url but nothing works.
Is this a browser bug or in this case ampersand should not be encoded?