We have two example websites:
http://fastpic.ru/ (html4 doctype)
and
http://imagebam.com/ (html5 doctype)
and I need to make a html5 element on both sites via javascript (userscript), the element is <a>
with download
attribute,
if you try to set a download
attribute on html4 (1st) website it simply wouldn't work, you click it - it just opens the link when you click it, no download
html5 behavior
So, is there a way to still create and use html5 element on a html4 website?
EDIT: found out firefox doesn't allow cross-origin (even subdomains) download
attribute... damn, nothing works like it should in firefox...