Just to add to this that Chrome didn't remove anything. You were just looking at the wrong place, probably. I suppose you were watching the "Inspect Element" section of the Chrom dev tools? The things you see there are the actual dom model, represented as an html structure.
You can see the original html by right clicking the page and choosing "View page source". There, you should see the real html that reached your browser (with all the errors and stuff that caused the Chrome to ignore/remove them in the final DOM model).
Empty alt attribute not possible in Razor?
To comply with WCAG I neet to declare a empty alt attribute in a partial view.
The problem is that
<img src="someImage" alt="" />
renders to<img src="someImage" alt />
How can I prevent Umbraco from deleting
=""
?Thanks
Hi
do you have the snippet of code that is doing this?
of the top of my head i can't think why this is happening, but if you wrapped it in Html.Raw then you would have full control of what got written out
e.g
should work (if i got the "'s right)
Oh, I'm such a morron..... I checked in Internet explorer and it shows the
=""
...It is chrome that removed it.
Thanks anyway.
Just to add to this that Chrome didn't remove anything. You were just looking at the wrong place, probably. I suppose you were watching the "Inspect Element" section of the Chrom dev tools? The things you see there are the actual dom model, represented as an html structure.
You can see the original html by right clicking the page and choosing "View page source". There, you should see the real html that reached your browser (with all the errors and stuff that caused the Chrome to ignore/remove them in the final DOM model).
is working on a reply...