What's the deal with URLs for Yandex.Metrica not prepended with "http"?
Posted
by
sharptooth
on Pro Webmasters
See other posts from Pro Webmasters
or by sharptooth
Published on 2012-08-24T13:26:51Z
Indexed on
2012/09/10
9:48 UTC
Read the original article
Hit count: 511
The description of Yandex.Metrica explicitly says that URLs like //mc.yandex.ru/metrika/watch.js
(no http:
in front) that the web site owner has to insert into his pages are not erroneous. So for example this code:
<img src="//mc.yandex.ru/watch/00000"
style="position:absolute; left:-9999px;" alt="" />
is claimed to be okay.
However the code validator thinks such URLs are not okay and I'd rather make the validator happy so that noone breaks the code later trying to "fix" it.
Why are these URLs not prepended with http:
? What happens if I actually prepend them with http:
?
© Pro Webmasters or respective owner