In IE10 and IE9, instead of the file appearing successfully, a dialog box appears asking "Do you want to open or save (the file name) from www…com? OPEN SAVE CANCEL
In FF it says "You have chosen to open (the file name) which is application/ocet-stream from www…com OPEN SAVE CANCEL
What can I add (or change) so that the file appears, upon selecting the link, in IE10, IE9 and FF? instead of a dialog box appearing?
Can we see a demo page that has the trouble? When I try just the above code on IE9, IE10, or Firefox, I’m not getting the problem, and am taken right through to the image as with IE8.
Even though HTML5 anchor tags can have block-level elements within them - I believe though that they’re not allowed to have interactive content within them, such as forms or buttons.
The a element may be wrapped around entire paragraphs, lists, tables, and so forth, even entire sections, so long as there is no interactive content within (e.g. buttons or other links).
Yes that’s what I assumed as you can’t have any actions apart from the link destination taking place inside that element. Just as you couldn’t nest more anchors inside either.
Not quite:) ins and del can be both block or inline depending on situation and may contain block elements
I’d have to assume that you are right then . Probably for the best. It’s very strange to have that kind of setup anyway, and probably should be done another way if it exists.
I don’t think so, for that’s another case of a clickable element being inside of the link - we don’t want browsers to be confused over what to do in such cases, so no interactive content within anchors.
The best you can do is to have non-interactive content in there and fake the interaction, using event listeners.